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/Pause the Timer
- Query the Timer status
- Add more time to a running timer.
- Wait for the Timer to finish
- Add custom message to the timer status
- 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 15sor10:30)--addAdd more time to a running timer instead of starting a new timer--messageAdd a custom message to the timer status--resumeResume a paused timer (default: disabled)--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 (25 min with alarm sound)
# Start a 30 min timer wihout playing alarm sound, but triggering a system notification
# Stop the timer
Pause/Resume the timer
# Pause the Timer (calling this command again will resume the timer)
# Resume a paused timer
Add more time to a running timer
# Add 10 minutes to the timer (instead of starting a new timer)
Query the timer status
## Get remaining time in human readable format
# Get the timer status in JSON format (for Waybar integration)
# Specify the timer format in digital format (10:30) -- default
# Specify the time format in segmented format (1h 30m 15s)
# Specify the time format in seconds
Waybar integration

Add the following module to your waybar configuration:
"custom/pomo": ,
CSS styling
The module supports three different states: running, paused and finished. 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.