tock256

Crates.iotock256
lib.rstock256
version0.1.0
created_at2025-12-18 01:10:09.757088+00
updated_at2025-12-18 01:10:09.757088+00
descriptionUltra-lightweight Pomodoro timer for macOS (CLI-only) with near-zero CPU usage while running.
homepage
repositoryhttps://github.com/ToRainu256/tock
max_upload_size
id1991469
size32,552
James (ToRainu256)

documentation

README

tock

Ultra-lightweight Pomodoro timer for macOS (CLI-only) with near-zero CPU usage while running.

Install

From crates.io:

cargo install tock256

From this directory:

cargo install --path .

Or build a release binary and copy it into your PATH:

cargo build --release
cp target/release/tock ~/.local/bin/

Usage

tock start 25   # start a work session (default: 25)
tock break 5    # start a break session (default: 5)
tock start 25 --sets 4 --break-minutes 5  # run 4 work sessions with breaks between
tock status     # show current timer info (exit 0 if running, 1 otherwise)
tock stop       # stop the current timer (exit 0 if stopped, 1 otherwise)

Notes

  • Notifications are sent via osascript using display notification ... (macOS Notification Center). If you don’t see notifications, make sure your terminal app (Terminal/iTerm2/etc.) is allowed to post notifications in System Settings → Notifications.
  • Low resource design: the background process sleeps until the session deadline (no periodic polling).
  • State is stored at $XDG_DATA_HOME/tock/state.json if XDG_DATA_HOME is set; otherwise at ~/.local/share/tock/state.json.
Commit count: 0

cargo fmt