Skip to content

Instantly share code, notes, and snippets.

@tjstebbing
Created April 11, 2024 22:16
Show Gist options
  • Save tjstebbing/e26833dcc07c8b4d1646bc3149572297 to your computer and use it in GitHub Desktop.
Save tjstebbing/e26833dcc07c8b4d1646bc3149572297 to your computer and use it in GitHub Desktop.
#!/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