Commit 545e4fd
xxwhirlpool
·
2025-06-05 08:16:18 -0400 EDT
parent f428b0e
add custom arg to pomodoro
1 files changed,
+7,
-0
+7,
-0
| ... | ... | @@ -22,6 +22,13 @@ elif [ "$1" == "break" ]; then | |
| 22 | 22 | timer "20m" | |
| 23 | 23 | notify-send "'$val' session done" | |
| 24 | 24 | spd-say -t female3 -r +35 "'$val' session done" | |
| 25 | + | elif [ "$1" == "custom" ]; then | |
| 26 | + | val=$1 | |
| 27 | + | choice=$(gum input --placeholder duration | awk '{print $0"m"}' ) | |
| 28 | + | echo -e "⏱️ $val: $choice ‧₊˚🌈✩ ₊˚🫧⊹♡" | lolcat -p 0.2 | |
| 29 | + | timer "$choice" | |
| 30 | + | notify-send "'$val' session done" | |
| 31 | + | spd-say -t female3 -r +35 "'$val' session done" | |
| 25 | 32 | else | |
| 26 | 33 | echo -n "something failed" | |
| 27 | 34 | fi |