Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sayanarijit/pomo
Probably the simplest pomodoro timer CLI for Linux
https://github.com/sayanarijit/pomo
Last synced: 3 months ago
JSON representation
Probably the simplest pomodoro timer CLI for Linux
- Host: GitHub
- URL: https://github.com/sayanarijit/pomo
- Owner: sayanarijit
- License: mit
- Archived: true
- Created: 2021-06-02T06:18:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-08T17:50:40.000Z (over 3 years ago)
- Last Synced: 2024-08-08T16:14:50.361Z (7 months ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 83
- Watchers: 3
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`.
```bash
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
```