various workflow changes

This commit is contained in:
2023-04-28 06:52:15 -04:00
parent 27fbca8f75
commit a6ac79de70
6 changed files with 48 additions and 18 deletions

18
zsh/config.d/pomodoro.zsh Normal file
View File

@@ -0,0 +1,18 @@
# Requires https://github.com/caarlos0/timer
# Requires spd-say
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
timer ${pomo_options["$val"]}m
spd-say "'$val' session done"
fi
}
alias wo="pomodoro 'work'"
alias br="pomodoro 'break'"