Skip to content

Probably the simplest pomodoro timer CLI for Linux

License

Notifications You must be signed in to change notification settings

sayanarijit/pomo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Probably the simplest pomodoro timer CLI for Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages