-
-
Save tilacog/fbdff55cea75186a35b8ab5e5106ec0b to your computer and use it in GitHub Desktop.
Shell script Pomodoro timer for ubuntu unity
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/env bash | |
# | |
# Pomodoro script. | |
# | |
# Displays a notification after X minutes. | |
# | |
# Depends on libnotify-bin | |
main() { | |
minutes=$1 | |
notify-send -i clock "Pomodoro started for ${minutes} minutes" | |
sleep "${minutes}"m | |
notify-send -i clock "Pomodoro ended (${minutes} minutes)" | |
} | |
main "$@" & disown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment