dots


commit
5b6b68c
parent
545e4fd
author
xxwhirlpool
date
2025-06-05 19:04:24 -0400 EDT
update pomodoro
1 files changed,  +9, -8
M config/.local/bin/pomodoro
+9, -8
 1@@ -4,31 +4,32 @@
 2 #
 3 # https://gist.github.com/bashbunni/3880e4194e3f800c4c494de286ebc1d7
 4 
 5+notif() {
 6+	notify-send "'$val' session done"
 7+	spd-say -t female3 -r +35 "'$val' session done"
 8+}
 9+
10 if [ "$1" == "quick" ]; then
11 	val=$1
12 	echo -e "⏱️ $val ‧₊˚🌈✩ ₊˚🫧⊹♡" | lolcat -p 0.2
13 	timer "15m"
14-	notify-send "'$val' session done"
15-	spd-say -t female3 -r +35 "'$val' session done"
16+	notif
17 elif [ "$1" == "work" ]; then
18 	val=$1
19 	echo -e "⏱️ $val ‧₊˚🌈✩ ₊˚🫧⊹♡" | lolcat -p 0.2
20 	timer "45m"
21-	notify-send "'$val' session done"
22-	spd-say -t female3 -r +35 "'$val' session done"
23+	notif
24 elif [ "$1" == "break" ]; then
25 	val=$1
26 	echo -e "⏱️ $val ‧₊˚🌈✩ ₊˚🫧⊹♡" | lolcat -p 0.2
27 	timer "20m"
28-	notify-send "'$val' session done"
29-	spd-say -t female3 -r +35 "'$val' session done"
30+	notif
31 elif [ "$1" == "custom" ]; then
32 	val=$1
33 	choice=$(gum input --placeholder duration | awk '{print $0"m"}' )
34 	echo -e "⏱️ $val: $choice ‧₊˚🌈✩ ₊˚🫧⊹♡" | lolcat -p 0.2
35 	timer "$choice"
36-	notify-send "'$val' session done"
37-	spd-say -t female3 -r +35 "'$val' session done"
38+	notif
39 else
40 	echo -n "something failed"
41 fi