Skip to content

Instantly share code, notes, and snippets.

@maxronner
maxronner / .zshrc
Created April 15, 2025 14:48 — forked from brianbert/.zshrc
CLI Pomodoro for Linux (with loop, notifications and terminal commands!)
declare -A pomo_options
pomo_options["work"]="0.5"
pomo_options["break"]="0.5"
pomodoro() {
val=$1
echo $val | lolcat
timer ${pomo_options["$val"]}m
spd-say "'$val' session done"
notify-send --app-name=Pomodoro🍅 "'$val' session done 🍅"
@maxronner
maxronner / .zshrc
Created April 15, 2025 14:48 — forked from bashbunni/.zshrc
CLI Pomodoro for Linux
# study stream aliases
# Requires https://github.com/caarlos0/timer to be installed. spd-say should ship with your distro
declare -A pomo_options
pomo_options["work"]="45"
pomo_options["break"]="10"
pomodoro () {
if [ -n "$1" -a -n "${pomo_options["$1"]}" ]; then
val=$1