eww -> timer: Fixed timer getting stuck

This commit is contained in:
GaspardCulis 2024-08-19 21:16:01 +02:00
parent 56e17f0554
commit eeba79e702
No known key found for this signature in database
GPG key ID: BC18146756955609

View file

@ -5,7 +5,7 @@
(defvar timer-start-time 0)
(defpoll timer-time
:interval "1s"
:interval "900ms"
:run-while {timer-state != "inactive"}
`date +%s`)
@ -18,8 +18,8 @@
echo next
else
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
echo first
eww update timer-state=pause timer-pause-period=first
echo final
fi`) ; TODO: Put in a separate script
(defpoll timer-pause-period
@ -31,8 +31,8 @@
echo next
else
notify-send -c grind-timer -i ~/Images/Icons/moai.jpg "Pause period over" "Back to grinding we go."
eww update timer-state=work
echo first
eww update timer-state=work timer-work-period=first
echo final
fi`) ; TODO: Put in a separate script
(defwidget start-button []