From 30767bea20d27c743645929058af6a4e7207f06a Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 12 Sep 2014 21:24:10 +0200 Subject: [PATCH] lock: ensure notification happens before timeout --- bin/xss-lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/xss-lock b/bin/xss-lock index c8cf896..5694c72 100755 --- a/bin/xss-lock +++ b/bin/xss-lock @@ -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)