lock: ensure that dim stops before end of period

Otherwise, we have concurrent xbacklight processes
This commit is contained in:
Vincent Bernat 2014-09-13 20:31:09 +02:00
parent e0b246bee9
commit 8dc196e60d

View file

@ -15,7 +15,7 @@ case "$1" in
trap 'exit 0' TERM INT
trap "xbacklight -steps 1 -set $(xbacklight -get); kill %%" EXIT
min_brightness=0
fade_time=$(($notify * 1000))
fade_time=$(($notify * 800))
fade_steps=100
xbacklight -time $fade_time -steps $fade_steps -set $min_brightness
echo "$me: dim: end"