From 9d9234e4dd8ec1aa5e7f8bdfd72a0e2b4014f916 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 14 Sep 2014 08:41:18 +0200 Subject: [PATCH] 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... :( --- bin/xss-lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xss-lock b/bin/xss-lock index a68188a..863026a 100755 --- a/bin/xss-lock +++ b/bin/xss-lock @@ -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