GitXplorerGitXplorer
s

pomo

public
86 stars
13 forks
0 issues

Commits

List of commits on branch main.
Verified
7a78dc6d9353da2e07a8f17e703296681a519b7c

Update pomo.sh

ssayanarijit committed 4 years ago
Verified
3b75b4749c4071f7b4ac183cc55a5e3025437ba0

Update README.md

ssayanarijit committed 4 years ago
Verified
52c5aa2c6f39d753d187e57e1d46d1d1750e84c0

Update README.md

ssayanarijit committed 4 years ago
Verified
d569a587b3789523f36ecf9ccdcac29ebf01080b

Update README.md

ssayanarijit committed 4 years ago
Verified
17e7fd8f3702a4e1ee95e1062b688ebdfabee803

Create pomo.sh

ssayanarijit committed 4 years ago
Verified
8736a958d7e3c5576786dea056f8ec5935ad8bf2

Initial commit

ssayanarijit committed 4 years ago

README

The README file for this repository.

pomo

Probably the simplest pomodoro timer CLI for Linux

Installation

You don't have to install it. Just copy the following snippet in your .profile / .bashrc / .zshrc.

function pomo() {
    arg1=$1
    shift
    args="$*"

    min=${arg1:?Example: pomo 15 Take a break}
    sec=$((min * 60))
    msg="${args:?Example: pomo 15 Take a break}"

    while true; do
        date '+%H:%M' && sleep "${sec:?}" && notify-send -u critical -t 0 -a pomo "${msg:?}"
    done
}

Usage

pomo 15 Take a break