diff --git a/zshrc.org b/zshrc.org index ebbbfe4..9f1cd46 100644 --- a/zshrc.org +++ b/zshrc.org @@ -463,7 +463,7 @@ This needs to be diff'd among the versions #+begin_src sh alias hugo="/snap/bin/hugo" #+end_src -*** Pomodoro aliases :daily:pi:android: +*** Pomodoro aliases :pi:android: These aliases help setting up termdown to countdown for the pomodoro technique #+begin_src sh @@ -476,6 +476,28 @@ technique alias pomo-break="$termdown_bin 5m -aW -f 3x5 -c 60 -b -q 10 $@" alias pomodorino-break="$termdown_bin 2m30s -aW -f 3x5 -c 45 -b -q 10 $@" #+end_src +*** Wrapped pomodoro aliases :daily: + Here we wrap the commands in a python script that takes care of + setting do not disturb on the KDE notification system + #+begin_src sh + termdown_bin=/usr/bin/termdown + termdown_opts="-aWb -f 3x5 " + + pomo_cmd="$termdown_bin $termdown_opts 25m -c 180 -q 10 -s $@" + heirloom_cmd="$termdown_bin $termdown_opts 37m -c 300 -q 10 -s $@" + pomodorino_cmd="$termdown_bin $termdown_opts 14m -c 120 -q 10 -s $@" + + pomo_break_cmd="$termdown_bin $termdown_opts 5m -c 60 -q 10 $@" + pomodorino_break_cmd="$termdown_bin 2m30s $termdown_opts -c 45 -q 10 $@" + + alias pomo="~/scripts/dnd-wrapper.py '$pomo_cmd' Pomodoro" + alias pomodoro=pomo + alias heirloom="~/scripts/dnd-wrapper.py '$heirloom_cmd' Pomodoro" + alias pomodorino="~/scripts/dnd-wrapper.py '$pomodorino_cmd' Pomodoro" + alias pomo-break="~/scripts/dnd-wrapper.py '$pomo_break_cmd' Pomodoro" + alias pomodorino-break="~/scripts/dnd-wrapper.py '$pomodorino_break_cmd' Pomodoro" + #+end_src + *** Android aliases :daily: #+begin_src sh alias android-unlock='~/scripts/unlock-android.sh' #$(cat ~/scripts/unlock-android.gpg | gpg 2>/dev/null)'