Commit 5b6b68c

xxwhirlpool  ·  2025-06-05 19:04:24 -0400 EDT
parent 545e4fd
update pomodoro
1 files changed,  +9, -8
+9, -8
......@@ -4,31 +4,32 @@
44 #
55 # https://gist.github.com/bashbunni/3880e4194e3f800c4c494de286ebc1d7
66
7+notif() {
8+ notify-send "'$val' session done"
9+ spd-say -t female3 -r +35 "'$val' session done"
10+}
11+
712 if [ "$1" == "quick" ]; then
813 val=$1
914 echo -e "⏱️ $val ‧₊˚🌈✩ ₊˚🫧⊹♡" | lolcat -p 0.2
1015 timer "15m"
11- notify-send "'$val' session done"
12- spd-say -t female3 -r +35 "'$val' session done"
16+ notif
1317 elif [ "$1" == "work" ]; then
1418 val=$1
1519 echo -e "⏱️ $val ‧₊˚🌈✩ ₊˚🫧⊹♡" | lolcat -p 0.2
1620 timer "45m"
17- notify-send "'$val' session done"
18- spd-say -t female3 -r +35 "'$val' session done"
21+ notif
1922 elif [ "$1" == "break" ]; then
2023 val=$1
2124 echo -e "⏱️ $val ‧₊˚🌈✩ ₊˚🫧⊹♡" | lolcat -p 0.2
2225 timer "20m"
23- notify-send "'$val' session done"
24- spd-say -t female3 -r +35 "'$val' session done"
26+ notif
2527 elif [ "$1" == "custom" ]; then
2628 val=$1
2729 choice=$(gum input --placeholder duration | awk '{print $0"m"}' )
2830 echo -e "⏱️ $val: $choice ‧₊˚🌈✩ ₊˚🫧⊹♡" | lolcat -p 0.2
2931 timer "$choice"
30- notify-send "'$val' session done"
31- spd-say -t female3 -r +35 "'$val' session done"
32+ notif
3233 else
3334 echo -n "something failed"
3435 fi