update hyprland autostart
This commit is contained in:
@@ -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" })
|
||||
|
||||
Reference in New Issue
Block a user