Skip to content

Instantly share code, notes, and snippets.

@Chrizwiz15
Forked from bashbunni/.zshrc
Created May 25, 2025 07:11
Show Gist options
  • Select an option

  • Save Chrizwiz15/a248e64059d0b0a8198cfcce4081a9a4 to your computer and use it in GitHub Desktop.

Select an option

Save Chrizwiz15/a248e64059d0b0a8198cfcce4081a9a4 to your computer and use it in GitHub Desktop.
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
echo $val | lolcat
timer ${pomo_options["$val"]}m
spd-say "'$val' session done"
fi
}
alias wo="pomodoro 'work'"
alias br="pomodoro 'break'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment