add screen lock

This commit is contained in:
Guilherme Rugai Freire 2021-09-12 16:11:08 -03:00
parent 0d449009c7
commit df35e0c966
No known key found for this signature in database
GPG Key ID: 0F9FE41723A8A297

View File

@ -27,3 +27,18 @@ nm-applet &
# Start volume bar # Start volume bar
~/.config/xob/volume.sh & ~/.config/xob/volume.sh &
# Run xidlehook
xidlehook \
`# Don't lock when there's a fullscreen application` \
--not-when-fullscreen \
`# Don't lock when there's audio playing` \
--not-when-audio \
`# Lock after 5 minutes` \
--timer 300 \
'betterlockscreen -l dimblur' \
'' \
`# Finally, suspend an hour after it locks` \
--timer 3600 \
'systemctl suspend' \
'' &