Last active
September 11, 2024 02:52
-
-
Save harshagv/c7bc8e4ce051fb4fd6d88da4bc780a5c to your computer and use it in GitHub Desktop.
MacOS pomodoro script
This file contains hidden or 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
| # Install Prerequisites | |
| # brew install terminal-notifier | |
| # brew install caarlos0/tap/timer | |
| # | |
| work() { | |
| timer ${1} \ | |
| && say 'Harsha, Work Timer is up! Take a Break' \ | |
| && terminal-notifier \ | |
| -title 'Pomodoro'\ | |
| -message 'Harsha ποΈ, Work Timer is up β! Take a Break πΊ π '\ | |
| -appIcon '~/Pictures/grogu.png'\ | |
| -sound Crystal | |
| } | |
| rest() { | |
| timer ${1} \ | |
| && say 'Harsha, Break is over! Get back to work' \ | |
| && terminal-notifier \ | |
| -title 'Pomodoro'\ | |
| -message 'Harsha π, Break is over β! Get back to work π» π'\ | |
| -appIcon '~/Pictures/brucelee.png'\ | |
| -sound Crystal | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment