...
This commit is contained in:
parent
42df7f684a
commit
0fb637a5a4
1 changed files with 8 additions and 5 deletions
|
|
@ -1,9 +1,12 @@
|
||||||
-- shutdown hyprland and lock
|
-- shutdown hyprland and lock
|
||||||
hl.bind(
|
hl.bind("CTRL + ALT + M", function()
|
||||||
"CTRL + ALT + M",
|
if os.execute("command -v hyprshutdown >/dev/null 2>&1") then
|
||||||
hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch 'hl.dsp.exit()'"),
|
hl.dsp.exec_cmd("hyprshutdown")()
|
||||||
{ description = "hyprland shutdown" }
|
else
|
||||||
)
|
hl.dsp.exit()
|
||||||
|
end
|
||||||
|
end, { description = "hyprland shutdown" })
|
||||||
|
|
||||||
hl.bind("CTRL + ALT + L", hl.dsp.exec_cmd(lockscreen))
|
hl.bind("CTRL + ALT + L", hl.dsp.exec_cmd(lockscreen))
|
||||||
-- launchers
|
-- launchers
|
||||||
hl.bind("ALT + D", hl.dsp.exec_cmd(fileManager))
|
hl.bind("ALT + D", hl.dsp.exec_cmd(fileManager))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue