Created
April 11, 2024 22:16
-
-
Save tjstebbing/e26833dcc07c8b4d1646bc3149572297 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
counter=0 | |
while true; do | |
NEXT=$(date -v +1H +%H:00) | |
tclock -c darkgray countdown -t "$NEXT" -T "worked $counter hours" | |
read -p "Start the next hour? (y/n): " yn | |
case $yn in | |
[Yy]*) echo "Continuing..." ;; | |
[Nn]*) | |
echo "Exiting..." | |
exit | |
;; | |
*) echo "Please answer yes or no." ;; | |
esac | |
((counter++)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment