From 4d29ac2036a7742888891396b53bc5bde8267499 Mon Sep 17 00:00:00 2001 From: Nikolay Puzanov Date: Tue, 4 Sep 2018 14:38:35 +0300 Subject: [PATCH] Fix timer-auto-stop script --- timer-auto-stop.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/timer-auto-stop.sh b/timer-auto-stop.sh index 4cc5392..1953519 100755 --- a/timer-auto-stop.sh +++ b/timer-auto-stop.sh @@ -2,7 +2,7 @@ timer_is_start() { - if [ "$(timer)" = "NO TASKS" ]; then + if [ "$(timer current)" = "NO TASKS" ]; then echo "off" else echo "on" @@ -12,7 +12,7 @@ timer_is_start() screen_status() { local xset_status=$(xset q | grep "Monitor is") - + if [ "$xset_status" = " Monitor is On" ]; then echo "on" elif [ "$xset_status" = " Monitor is Off" ]; then @@ -46,6 +46,6 @@ do fi scr_status=$scr - + sleep 5 done