Fix timer-auto-stop script

This commit is contained in:
Nikolay Puzanov 2018-09-04 14:38:35 +03:00
parent bc4ca19818
commit 4d29ac2036

View File

@ -2,7 +2,7 @@
timer_is_start() timer_is_start()
{ {
if [ "$(timer)" = "NO TASKS" ]; then if [ "$(timer current)" = "NO TASKS" ]; then
echo "off" echo "off"
else else
echo "on" echo "on"
@ -12,7 +12,7 @@ timer_is_start()
screen_status() screen_status()
{ {
local xset_status=$(xset q | grep "Monitor is") local xset_status=$(xset q | grep "Monitor is")
if [ "$xset_status" = " Monitor is On" ]; then if [ "$xset_status" = " Monitor is On" ]; then
echo "on" echo "on"
elif [ "$xset_status" = " Monitor is Off" ]; then elif [ "$xset_status" = " Monitor is Off" ]; then
@ -46,6 +46,6 @@ do
fi fi
scr_status=$scr scr_status=$scr
sleep 5 sleep 5
done done