pomodoro-cli-1.0.0 is not a library.
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.
- Triggers system notification when the Timer is finished
- Play alarm sound when the Timer is finished
- Easy Waybar integration
- Customize notification icon
- Customize 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)
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)
Query the timer status
# Get remaining time in seconds (This is the default behavior for `status`)
## Get remaining time in human readable format
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.
Waybar integration
Add the following module to your waybar configuration:

"custom/pomodoro":
If you want to signal Waybar to update the module immediately when you click it, change use the following configuration:
"custom/pomo":