Skip to content

Instantly share code, notes, and snippets.

@catichenor
Last active July 28, 2016 18:44
Show Gist options
  • Save catichenor/b70d0e36064c734c0f77edd9fa3595ac to your computer and use it in GitHub Desktop.
Save catichenor/b70d0e36064c734c0f77edd9fa3595ac to your computer and use it in GitHub Desktop.
A simple Pomodoro timer for GNOME 3
#!/bin/bash
# Work for 25 minutes, break for 5 minutes.
while [ TRUE ]; do
echo "Worktime: The time is `date +%l:%M`"
notify-send "Work" "Time to start working."
sleep 1200
echo "Worktime: 5 minutes left. The time is `date +%l:%M`"
notify-send "Work" "5 minutes left."
sleep 300
echo "Breaktime: The time is `date +%l:%M`"
notify-send "Break" "Time for a break."
sleep 300
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment