Created
October 4, 2013 17:16
-
-
Save haron/6829384 to your computer and use it in GitHub Desktop.
Pomodoro timer function for your .bashrc
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
_settitle () { | |
echo -ne "\033]0;$@\007" 1>&2 | |
} | |
pomodoro() { | |
T=15 | |
_settitle "Pomodoro $T min" | |
S=$((60*T)) | |
echo | |
(for I in `seq $S`; do echo -n " "; sleep 1; done) | pv -i 1 -s $S -w 100 -N "pomodoro $T min" -c -F "%N %t %p %e" | |
echo | |
say -v Bells LalalalalalalalalaLalalalalalalalala | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment