Lock screen after 120s

This commit is contained in:
Şahin Akkaya 2023-12-29 10:18:51 +03:00
parent 582418bbee
commit be29a4b29a

View File

@ -34,8 +34,8 @@ exec-once = /usr/libexec/kf5/polkit-kde-authentication-agent-1
# Dim screen after 60 seconds of inactivity
exec-once = swayidle -w timeout 60 'dim-screen &' resume 'undim-screen'
# Lock screen after idle for 300s
exec-once = swayidle -w timeout 300 'lock-screen'
# Lock screen after idle for 120s
exec-once = swayidle -w timeout 120 'lock-screen'
# Dim screen 5 seconds after screen is locked. no -w option here.
exec-once = swayidle timeout 5 'if pgrep -x swaylock; then dim-screen; fi' resume 'undim-screen'
# Turn monitors off 20 seconds after screen is locked