lock: ensure notification happens before timeout

This commit is contained in:
Vincent Bernat 2014-09-12 21:24:10 +02:00
parent 9eb6982085
commit 30767bea20

View file

@ -6,8 +6,8 @@ notify=10
case "$1" in
start)
xset s $timeout $notify
xset dpms $(($timeout * 2 + $notify)) $(($timeout * 3 + $notify)) $(($timeout * 4 + $notify))
xset s $(($timeout - $notify)) $notify
xset dpms $(($timeout * 2)) $(($timeout * 3)) $(($timeout * 4))
exec xss-lock -n "$me dim" -l $me lock
;;
dim)