1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-11-12 17:06:48 +01:00
This commit is contained in:
Henrik Hautakoski 2026-11-02 17:48:57 +01:00
parent 5366d66a23
commit 83c14bfb24
3 changed files with 85 additions and 5 deletions

18
hypr/helpers/exec.lua Normal file
View file

@ -0,0 +1,18 @@
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