eww -> timer: Fixed timer getting stuck
This commit is contained in:
parent
56e17f0554
commit
eeba79e702
1 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
||||||
(defvar timer-start-time 0)
|
(defvar timer-start-time 0)
|
||||||
|
|
||||||
(defpoll timer-time
|
(defpoll timer-time
|
||||||
:interval "1s"
|
:interval "900ms"
|
||||||
:run-while {timer-state != "inactive"}
|
:run-while {timer-state != "inactive"}
|
||||||
`date +%s`)
|
`date +%s`)
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@
|
||||||
echo next
|
echo next
|
||||||
else
|
else
|
||||||
notify-send -c grind-timer -i ~/Images/Icons/moai.jpg "Work period over" "You can take a little nap now."
|
notify-send -c grind-timer -i ~/Images/Icons/moai.jpg "Work period over" "You can take a little nap now."
|
||||||
eww update timer-state=pause
|
eww update timer-state=pause timer-pause-period=first
|
||||||
echo first
|
echo final
|
||||||
fi`) ; TODO: Put in a separate script
|
fi`) ; TODO: Put in a separate script
|
||||||
|
|
||||||
(defpoll timer-pause-period
|
(defpoll timer-pause-period
|
||||||
|
@ -31,8 +31,8 @@
|
||||||
echo next
|
echo next
|
||||||
else
|
else
|
||||||
notify-send -c grind-timer -i ~/Images/Icons/moai.jpg "Pause period over" "Back to grinding we go."
|
notify-send -c grind-timer -i ~/Images/Icons/moai.jpg "Pause period over" "Back to grinding we go."
|
||||||
eww update timer-state=work
|
eww update timer-state=work timer-work-period=first
|
||||||
echo first
|
echo final
|
||||||
fi`) ; TODO: Put in a separate script
|
fi`) ; TODO: Put in a separate script
|
||||||
|
|
||||||
(defwidget start-button []
|
(defwidget start-button []
|
||||||
|
|
Loading…
Reference in a new issue