Crates.io | pomo-cli |
lib.rs | pomo-cli |
version | 0.1.2 |
source | src |
created_at | 2024-07-26 20:09:18.926089 |
updated_at | 2024-08-01 13:00:12.453345 |
description | Yet another Pomodoro timer CLI. |
homepage | https://github.com/alexanderflink/pomo |
repository | https://github.com/alexanderflink/pomo |
max_upload_size | |
id | 1316722 |
size | 44,964 |
A small command line utility for running Pomodoro timers. Uses sockets instead of polling a file each time you check the timer.
cargo install pomo-cli
pomo start
Start a new timer
Options:
-a, --auto whether to automatically start the next timer when done
-d, --duration length of work period in minutes
-b, --break-duration length of break period in minutes
--long-break-interval do a long break every nth time, set to 0 to never do a long break
--long-break-duration length of long break in minutes
--help display usage information
pomo pause
Pause a running timer
pomo resume
Resume a paused timer
pomo stop
Stop the currently running timer
pomo status
Get the status of the currently running timer. Prints the timer time as W for Work timer and B for Break timer, along with the minutes and seconds left.
pomo next
Skip to the next timer without finishing the current one.
You can create script hooks to run when a timer starts, pauses or is finished. Create the files start.sh
, pause.sh
and finish.sh
in the ~/.config/pomo/
directory, and they will be run during these events. The type of timer (Work, Break) will be available in the $TIMER_TYPE
variable.
#! /bin/bash
say $TIMER_TYPE timer started
~/.config/pomo/hooks/start.sh