Time and lid based autolocking

This commit is contained in:
Emmet 2024-04-04 16:59:18 -05:00
parent 102142bf8e
commit e298eee2a1

View file

@ -138,7 +138,8 @@
bind=SUPER,C,exec,wl-copy $(hyprpicker)
bind=SUPERSHIFT,S,exec,systemctl suspend
bind=SUPERCTRL,L,exec,hyprlock
bindl=,switch:on:Lid Switch,exec,loginctl lock-session
bind=SUPERCTRL,L,exec,loginctl lock-session
bind=SUPER,H,movefocus,l
bind=SUPER,J,movefocus,d
@ -388,9 +389,13 @@
}
listener {
timeout = 600 # in seconds
timeout = 300 # in seconds
on-timeout = loginctl lock-session
}
listener {
timeout = 600 # in seconds
on-timeout = systemctl suspend
}
'';
home.file.".config/hypr/hyprlock.conf".text = ''
background {