cdotfis/dotfiles/.local/bin/autolock

14 lines
502 B
Bash
Executable File

#!/bin/bash
export XSECURELOCK_KEY_F12_COMMAND='xset dpms force off'
xset s off
#xset s 60 5
#xset s 300 5
xset dpms 0 0 890 # It has to be a little less than the xautlock
#xset dpms 0 0 310
#xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock
xautolock -time 15 -notify 15 -notifier '/usr/lib/xsecurelock/until_nonidle /usr/lib/xsecurelock/dimmer' -locker xsecurelock
#xautolock -time 5 -notify 5 -notifier '/usr/lib/xsecurelock/until_nonidle /usr/lib/xsecurelock/dimmer' -locker xsecurelock