pomodoro-cli
Pomodoro Timer Command Line Interface
Pomodoro timer is a simple timer that helps you to stay focused on your tasks.
pomodoro-cli is a CLI application which implements the basic functionalities of a basic Pomodoro timer. This application was designed to be used with waybar.
Installation
Download binary
Cargo
Features
- Start/Stop the Timer
- Query the Timer status
- Add more time to a running timer.
- Wait for the Timer to finish (v1.2.0)
- Triggers system notification when the Timer is finished
- Play alarm sound when the Timer is finished
- Easy Waybar integration
- Customize notification icon and alarm sound
Usage
Options for start:
--durationSet the duration for the timer (format:1h 30m 15s)--notifyTriggers system notification when the timer is finished (default: disabled)--silentDo not play alarm sound when the timer is finished (default: enabled)--waitWait for the timer to finish (default: disabled)
Start/Stop the timer
# Start the timer with default configuration
# Start the timer with custom configuration
# Stop the timer
# Pause the Timer (calling this command again will resume the timer)
Add more time to a running timer
# Call start again while the timer is running to add more time to the timer
Query the timer status
# Get remaining time in seconds (This is the default behavior for `status`)
## Get remaining time in human readable format
# Get the timer status in JSON format (for Waybar integration)
Waybar integration

Add the following module to your waybar configuration:
"custom/pomo": ,
CSS styling
The module supports three different states: running, paused and stopped. You can customize the styling of each state by adding the following CSS rules to your Waybar configuration:
}
}
}
Update Waybar module immediately
If you want to signal Waybar to update the module immediately when you can add pkill -SIGRTMIN+10 waybar to the on-click commands. For example:
"custom/pomo":
Customization
Set custom alarm sound
If you want to use a custom alarm sound, just add a alarm.mp3 file in the ~/.config/pomodoro-cli directory.
Set custom notification icon

If you want to use a custom notification icon, just add a icon.png file in the ~/.config/pomodoro-cli directory.