mskelton / pomo

Simple pomodoro timer CLI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pomo

Simple pomodoro timer CLI written in Rust.

Installation

You can install Pomo by running the install script which will download the latest release.

curl -LSfs https://go.mskelton.dev/pomo/install | sh

Or you can build from source.

git clone git@github.com:mskelton/pomo.git
cd pomo
cargo install --path cli

Usage

Get status

Prints the status of the current session.

pomo

Start focus

Starts a new pomodoro focus session with the default duration.

pomo start

Or customize the session duration by providing a human like duration.

pomo start 15m

Start break

Starts a new break with the default duration.

pomo break

Or customize the break duration by providing a human like duration.

pomo break 10m

Toggle

If currently in a focus session, switches to a break, otherwise switch to a new focus session. This uses the default session/break duration.

pomo toggle

Or customize the session/break duration by providing a human like duration.

pomo toggle 10m

Change duration

Changes the duration of the active session using the specified human like duration.

pomo duration 20m

Stop session

Stops the current pomodoro session.

pomo stop

Config

The default values for all commands can be customized by creating a $HOME/.config/pomo/config.json file. Below is an example of all available configuration options with their default values.

{
  "durations": {
    "break": "5m",
    "focus": "30m"
  },
  "emojis": {
    "break": "πŸ₯‚",
    "focus": "πŸ…",
    "warn": ["πŸ”΄", "β­•"]
  },
  "sound": "default"
}

Working Hours

You can optional configure working hours for Pomo which will auto start/stop when you start and end your working day.

{
  "working_hours": {
    "start": "8am",
    "end": "5:30pm"
  }
}

About

Simple pomodoro timer CLI.

License:ISC License


Languages

Language:Rust 45.8%Language:Shell 30.4%Language:Swift 23.7%