feat(hypr): lock screen on lid close, skip if caffeine mode is on
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main
parent
08c3097a70
commit
bb51a51a7b
|
|
@ -12,7 +12,7 @@ local winswitch = "" -- TODO: define your window switcher command
|
||||||
---- LID SWITCH ----
|
---- LID SWITCH ----
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("systemctl suspend &"), { locked = true })
|
hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("bash -c 'pidof hypridle > /dev/null && hyprlock'"), { locked = true })
|
||||||
hl.bind("switch:off:Lid Switch", hl.dsp.exec_cmd("hyprctl dispatch exec hyprlock"), { locked = true })
|
hl.bind("switch:off:Lid Switch", hl.dsp.exec_cmd("hyprctl dispatch exec hyprlock"), { locked = true })
|
||||||
|
|
||||||
--------------------
|
--------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue