summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@spacehb.net>2025-01-12 14:27:49 +0100
committerRaymaekers Luca <luca@spacehb.net>2025-01-12 14:27:49 +0100
commit3037e98983fa03863fcd8002c561e95dff213f76 (patch)
tree5ec69fd7c4febf54ffe93f12a673a751477f3f5f
parent449f969b19e1b6a5e402305f2c968d9ed09dedf7 (diff)
checkpoint
-rwxr-xr-xbin/menuscripts/pomo8
-rw-r--r--config/essentials/zsh/.zshrc6
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; }