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 @@ | |
| 4 | 4 | # | |
| 5 | 5 | # https://gist.github.com/bashbunni/3880e4194e3f800c4c494de286ebc1d7 | |
| 6 | 6 | ||
| 7 | + | notif() { | |
| 8 | + | notify-send "'$val' session done" | |
| 9 | + | spd-say -t female3 -r +35 "'$val' session done" | |
| 10 | + | } | |
| 11 | + | ||
| 7 | 12 | if [ "$1" == "quick" ]; then | |
| 8 | 13 | val=$1 | |
| 9 | 14 | echo -e "⏱️ $val ‧₊˚🌈✩ ₊˚🫧⊹♡" | lolcat -p 0.2 | |
| 10 | 15 | timer "15m" | |
| 11 | - | notify-send "'$val' session done" | |
| 12 | - | spd-say -t female3 -r +35 "'$val' session done" | |
| 16 | + | notif | |
| 13 | 17 | elif [ "$1" == "work" ]; then | |
| 14 | 18 | val=$1 | |
| 15 | 19 | echo -e "⏱️ $val ‧₊˚🌈✩ ₊˚🫧⊹♡" | lolcat -p 0.2 | |
| 16 | 20 | timer "45m" | |
| 17 | - | notify-send "'$val' session done" | |
| 18 | - | spd-say -t female3 -r +35 "'$val' session done" | |
| 21 | + | notif | |
| 19 | 22 | elif [ "$1" == "break" ]; then | |
| 20 | 23 | val=$1 | |
| 21 | 24 | echo -e "⏱️ $val ‧₊˚🌈✩ ₊˚🫧⊹♡" | lolcat -p 0.2 | |
| 22 | 25 | timer "20m" | |
| 23 | - | notify-send "'$val' session done" | |
| 24 | - | spd-say -t female3 -r +35 "'$val' session done" | |
| 26 | + | notif | |
| 25 | 27 | elif [ "$1" == "custom" ]; then | |
| 26 | 28 | val=$1 | |
| 27 | 29 | choice=$(gum input --placeholder duration | awk '{print $0"m"}' ) | |
| 28 | 30 | echo -e "⏱️ $val: $choice ‧₊˚🌈✩ ₊˚🫧⊹♡" | lolcat -p 0.2 | |
| 29 | 31 | timer "$choice" | |
| 30 | - | notify-send "'$val' session done" | |
| 31 | - | spd-say -t female3 -r +35 "'$val' session done" | |
| 32 | + | notif | |
| 32 | 33 | else | |
| 33 | 34 | echo -n "something failed" | |
| 34 | 35 | fi |