Simple pomodoro timer CLI written in Rust.
You can install Pomo by running the install script which will download the latest release.
curl -LSfs https://go.mskelton.dev/pomo/install | sh
Or you can build from source.
git clone [email protected]:mskelton/pomo.git
cd pomo
cargo install --path cli
Prints the status of the current session.
pomo
Starts a new pomodoro focus session with the default duration.
pomo start
Or customize the session duration by providing a human like duration.
pomo start 15m
Starts a new break with the default duration.
pomo break
Or customize the break duration by providing a human like duration.
pomo break 10m
If currently in a focus session, switches to a break, otherwise switch to a new focus session. This uses the default session/break duration.
pomo toggle
Or customize the session/break duration by providing a human like duration.
pomo toggle 10m
Changes the duration of the active session using the specified human like duration.
pomo duration 20m
Stops the current pomodoro session.
pomo stop
The default values for all commands can be customized by creating a $HOME/.config/pomo/config.json
file. Below is an example of all available configuration options with their default values.
{
"durations": {
"break": "5m",
"focus": "30m"
},
"emojis": {
"break": "🥂",
"focus": "🍅",
"warn": ["🔴", "⭕"]
},
"sound": "default"
}
You can optional configure working hours for Pomo which will auto start/stop when you start and end your working day.
{
"working_hours": {
"start": "8am",
"end": "5:30pm"
}
}