diff options
-rwxr-xr-x | bin/menuscripts/pomo | 8 | ||||
-rw-r--r-- | config/essentials/zsh/.zshrc | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/bin/menuscripts/pomo b/bin/menuscripts/pomo index f210b82..ed64ce7 100755 --- a/bin/menuscripts/pomo +++ b/bin/menuscripts/pomo @@ -5,7 +5,7 @@ ### FUNCTIONS notif() { - herbe "pomo" "$1" & + herbe "_pomo" "$1" & sleep 1 pkill -SIGUSR1 herbe } @@ -59,14 +59,14 @@ for msg in "three" "two" "one"; do done while true; do - notif "START" + notif "*START" printf >&2 '%s S %s\n' "$(date '+%R')" "$round" sleep ${SLEEP_TIME}m if [ "$round" -eq 3 ]; then - ring_ring 20 "GIGA BREAK TIME" + ring_ring 20 "*GIGA BREAK TIME" round=0 else - ring_ring 5 "BREAK TIME" + ring_ring 5 "*BREAK TIME" round=$((round + 1)) fi done diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 3a75873..8b94cfe 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -110,7 +110,11 @@ bindkey -M menuselect '^xu' undo # Undo ## window title hooks add-zsh-hook -Uz preexec () { print -n "\e]0;$1\a\033[0m"; } -add-zsh-hook -Uz precmd set_wt (){ print -Pn "\e]0;%n@%m on %~\a"; } +set_wt() { print -Pn "\e]0;%n@%m on %~\a"; } +add_newline() { printf '\n'; } +precmd_functions+=(add_newline) +precmd_functions+=(set_wt) +# add-zsh-hook -Uz precmd add_newline() { printf '\n'; } ## automatic ls after cd # add-zsh-hook -Uz chpwd (){ [ "$PWD" = "$HOME" ] || ls -A; } |