Skip to content

Instantly share code, notes, and snippets.

@padi
Last active October 19, 2016 05:59
Show Gist options
  • Save padi/0fc700e2c3573e230a00e27b7f9d5da1 to your computer and use it in GitHub Desktop.
Save padi/0fc700e2c3573e230a00e27b7f9d5da1 to your computer and use it in GitHub Desktop.
pomo.sh stupidly simple pomodoro on macOS if you just want something to notify you after 25 minutes then 5 minutes after
#!/bin/bash
osascript -e "display notification with title \"Start Pomodoro!\" sound name \"Hero.aiff\"" && \
(sleep 1500 | pv --timer) && \
osascript -e "display notification with title \"Pomodoro Break!\" sound name \"Hero.aiff\"" && \
(sleep 300 | pv --timer) && \
# (sleep 900 | pv --timer) &&\ # Uncomment for long breaks;
osascript -e "display notification with title \"Pomodoro Break Done!\" sound name \"Hero.aiff\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment