A simple command-line Pomodoro timer written in bash.
- Yes, we have smartwatches, cell phones, all of them with full fledged timer functions, but using the terminal is faster if you are already working and let's face it, it's a lot cooler too! :)
- Make the script executable by running chmod +x pomodoro.sh
- Execute the script by running ./pomodoro.sh 'argument' where argument is an integer representing the duration of the Pomodoro in minutes.
- The script will start a timer and display a progress bar with percentage and pipes.
- Once the timer is finished, the script will display a system notification and play the mp3 music.
$ ./pomodoro.sh 25
This will start a 25-minute Pomodoro timer.
- This script has only been tested on Linux systems.
- Notifications and sound alerts may not work on other operating systems.
- This script uses the command notify-send to display notifications, which may not be present on all systems.
- This script uses the command paplay to play sound alerts, which may not be present on all systems.
- Add OS check provision. I saw that somewhere the day before yesterday in someone's repo,
- Add Unicode Emoji if terminal supports,
- Add the option to choose between different sounds to be reproduced at the timer completion,
- Create an alias that takes a number argument to run the pomo timer from any directory
- @felixoakz
- @PseudoClone
Feel free to contribute to this project by submitting a pull request or opening an issue. All contributions, no matter how small, are welcome!
This project is licensed under the MIT License - see the LICENSE file for details.