This Bash Pomodoro Timer is a simple command-line tool to help users implement the Pomodoro Technique, a time management method that uses a timer to break down work into intervals, separated by short breaks.
- Clone the repository and make the script executable:
git clone https://github.com/marcoplaitano/pomodoro-bash
cd pomodoro-bash
chmod +x pomodoro.sh
- Run the pomodoro timer:
./pomodoro.sh
By default, it alternates between Focus slices of 25 minutes and Pauses
of 5.
After 3 iterations, a Long Pause of 20 minutes is earned.
The timer can be controlled with case-insensitive key presses:
P
to pause or resume (SPACE
works too)N
to skip to the next sliceQ
to quit the script
Open the pomodoro.sh
file to edit the following variables:
-
TIMES
Duration (in minutes) of each slicedeclare -A TIMES=( [FOCUS]=25 [PAUSE]=5 [LONG PAUSE]=20 )
-
NUM_ITERATIONS
Number of Focus slices to complete before a Long Pause is earnedNUM_ITERATIONS=3
-
SOUNDS
Sounds to play when notifying the beginning of a new slicedeclare -A SOUNDS=( [FOCUS]="/usr/share/sounds/focus.oga" [PAUSE]="/usr/share/sounds/pause.oga" [LONG PAUSE]="/usr/share/sounds/pause.oga" )
Marco Plaitano
Distributed under the MIT license.
Pomodoro Technique: https://www.pomodorotechnique.com/what-is-the-pomodoro-technique.php