feat(hypr): lock screen on lid close, skip if caffeine mode is on

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
Amir Alexander Abdelbaki 2026-05-31 22:08:24 +02:00
parent 08c3097a70
commit bb51a51a7b
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ local winswitch = "" -- TODO: define your window switcher command
---- 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 })
--------------------