mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-18 22:55:52 +05:30
Time and lid based autolocking
This commit is contained in:
parent
102142bf8e
commit
e298eee2a1
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue