lock: workaround race condition with dimming

For some reason, the race condition is here. Dunno how to fix it. Just
workaround it with another race condition... :(
This commit is contained in:
Vincent Bernat 2014-09-14 08:41:18 +02:00
parent e251895730
commit 9d9234e4dd

View file

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