This commit is contained in:
afoucaultc 2026-07-08 09:48:33 +02:00
parent 42df7f684a
commit 0fb637a5a4

View file

@ -1,9 +1,12 @@
-- shutdown hyprland and lock
hl.bind(
"CTRL + ALT + M",
hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch 'hl.dsp.exit()'"),
{ description = "hyprland shutdown" }
)
hl.bind("CTRL + ALT + M", function()
if os.execute("command -v hyprshutdown >/dev/null 2>&1") then
hl.dsp.exec_cmd("hyprshutdown")()
else
hl.dsp.exit()
end
end, { description = "hyprland shutdown" })
hl.bind("CTRL + ALT + L", hl.dsp.exec_cmd(lockscreen))
-- launchers
hl.bind("ALT + D", hl.dsp.exec_cmd(fileManager))