From 8dc196e60d04ebd711869b9f7408e3c8233f3601 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 13 Sep 2014 20:31:09 +0200 Subject: [PATCH] lock: ensure that dim stops before end of period Otherwise, we have concurrent xbacklight processes --- bin/xss-lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xss-lock b/bin/xss-lock index cdb2648..c49e0ec 100755 --- a/bin/xss-lock +++ b/bin/xss-lock @@ -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"