From ec415801604a5c36ec73e46f2d25978afd798afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Fri, 26 Jul 2019 16:39:37 +0100 Subject: [PATCH] Correct brightness when waking up from sleep --- lock.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lock.sh b/lock.sh index 36b1725e..a590ee8a 100755 --- a/lock.sh +++ b/lock.sh @@ -10,6 +10,6 @@ xset -dpms xidlehook \ --not-when-fullscreen \ --not-when-audio \ - --timer normal 180 'xrandr --output "$PRIMARY_DISPLAY" --brightness .1' 'xrandr --output "$PRIMARY_DISPLAY" --brightness 1' \ - --timer normal 600 'systemctl suspend' '' + --timer normal 120 'xrandr --output "$PRIMARY_DISPLAY" --brightness .1' 'xrandr --output "$PRIMARY_DISPLAY" --brightness 1' \ + --timer normal 300 'xrandr --output "$PRIMARY_DISPLAY" --brightness 1; systemctl suspend' 'xrandr --output "$PRIMARY_DISPLAY" --brightness 1'