mirror of
https://github.com/pnx/dotfiles
synced 2026-11-12 17:06:48 +01:00
hyprland
This commit is contained in:
parent
5366d66a23
commit
83c14bfb24
3 changed files with 85 additions and 5 deletions
18
hypr/helpers/exec.lua
Normal file
18
hypr/helpers/exec.lua
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue