update hyprland autostart

This commit is contained in:
Frank Zechert
2026-08-09 19:09:29 +02:00
parent 46ca87b6c1
commit 65e610507e
5 changed files with 47 additions and 41 deletions
-18
View File
@@ -1,23 +1,5 @@
local launchPrefix = "uwsm app -- "
local function is_ipc_call(command)
-- check if this is an ipc call to a running programm
is_dms_ipc = starts_with(command, "dms ipc")
is_hyprctl = starts_with(command, "hyprctl")
is_ipc = any({is_dms_ipc, is_hyprctl}, function(v) return v end)
return is_ipc
end
function create_launcher(command)
if is_ipc_call(command) then
return command
end
return launchPrefix .. command
end
function execute(command)
return hl.dsp.exec_cmd(create_launcher(command))
end
-- Program Launchers
hl.bind("SUPER + Return", execute(programs.terminal), { description = "Open Terminal" })