1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-11-03 20:56:45 +01:00
dotfiles/hypr/helpers/exec.lua
2026-11-02 17:48:57 +01:00

18 lines
341 B
Lua

local uwsm = os.execute("uwsm check is-active >/dev/null 2>&1")
local function normalize_cmd(cmd)
if uwsm == true or uwsm == 0 then
cmd = "uwsm-app " .. cmd
end
return cmd
end
function dispatch(cmd)
return hl.dsp.exec_cmd(normalize_cmd(cmd))
end
function exec(cmd)
return hl.exec_cmd(normalize_cmd(cmd))
end