Commit 949dd37
xxwhirlpool
·
2026-05-09 20:26:02 -0400 EDT
parent fc01599
misc
4 files changed,
+38,
-9
+2,
-0
| ... | ... | @@ -49,3 +49,5 @@ config/.local/bin/uvx | |
| 49 | 49 | scripts/Scripts/.directory | |
| 50 | 50 | scripts/Scripts/icons | |
| 51 | 51 | scripts/Scripts/gallery.html | |
| 52 | + | config/.local/bin/khal_reminder | |
| 53 | + | config/.config/khal/config_reminder |
+1,
-0
| ... | ... | @@ -109,6 +109,7 @@ alias xmpp="profanity" | |
| 109 | 109 | # some cd bookmarks | |
| 110 | 110 | alias dotf="cd /home/kat/dotfiles" | |
| 111 | 111 | alias gmine="cd /home/kat/Projects/mine" | |
| 112 | + | alias scr="cd /home/kat/Scripts" | |
| 112 | 113 | ||
| 113 | 114 | # weather stuff | |
| 114 | 115 | alias wttr="curl https://wttr.in/nyc?F0ASu" |
+5,
-4
| ... | ... | @@ -2,12 +2,13 @@ | |
| 2 | 2 | # | |
| 3 | 3 | # open a temp file as a scratchpad | |
| 4 | 4 | ||
| 5 | - | NOCOLOR="\033[0m" | |
| 6 | - | GREEN="\033[38;5;121m" | |
| 7 | - | ||
| 8 | 5 | file="$(mktemp --suffix _scratchpad)" | |
| 9 | 6 | ||
| 7 | + | gum_echo() { | |
| 8 | + | gum style --foreground 212 "$@" | |
| 9 | + | } | |
| 10 | + | ||
| 10 | 11 | micro "$file" | |
| 11 | 12 | ||
| 12 | - | echo -e "${GREEN}FILEPATH:${NOCOLOR}\n" | |
| 13 | + | gum_echo "FILEPATH:" | |
| 13 | 14 | realpath "$file" | lolcat -p 1.5 |
+30,
-5
| ... | ... | @@ -1,15 +1,40 @@ | |
| 1 | 1 | #!/usr/bin/env bash | |
| 2 | 2 | ||
| 3 | + | # check for deps (messily) | |
| 4 | + | if [[ ! "$(command -v timer)" ]]; then | |
| 5 | + | echo "missing required dependency: timer" | |
| 6 | + | echo "github.com/caarlos0/timer" | |
| 7 | + | exit 1 | |
| 8 | + | elif [[ ! "$(command -v gum)" ]]; then | |
| 9 | + | echo "missing required dependency: gum" | |
| 10 | + | echo "github.com/charmbracelet/gum" | |
| 11 | + | exit 1 | |
| 12 | + | fi | |
| 13 | + | ||
| 14 | + | # vars | |
| 15 | + | time="$1" | |
| 16 | + | ||
| 17 | + | # notif | |
| 3 | 18 | notif() { | |
| 4 | - | notify-send "$time timer done!" | |
| 19 | + | notify-send "timer done!" | |
| 5 | 20 | paplay ~/dotfiles/misc/sounds/chime | |
| 6 | 21 | spd-say -t female3 -r +25 "timer done!" | |
| 7 | 22 | } | |
| 8 | 23 | ||
| 9 | - | if [[ ! "$1" =~ "m" ]]; then | |
| 24 | + | # make styling easier | |
| 25 | + | gum_border() { | |
| 26 | + | gum style --foreground "#a6d189" --border-foreground "#99d1db" --border double --width 50 --padding "0 0" --align center "$@" | |
| 27 | + | } | |
| 28 | + | ||
| 29 | + | gum_echo() { | |
| 30 | + | gum style --foreground "#f4b8e4" --width 50 --padding "0 0" --align center "🌈✩₊˚.⋆⋆⁺₊✧ $* ✩₊˚.⋆⋆⁺₊✧🦋" && echo -e "\n" | |
| 31 | + | } | |
| 32 | + | ||
| 33 | + | # do everything | |
| 34 | + | if [[ ! "$time" =~ "m" ]]; then | |
| 10 | 35 | echo "add a time or a time unit (m for minutes)" | |
| 11 | 36 | else | |
| 12 | - | time="$1" | |
| 13 | - | echo -e "$time: 🌈✩₊˚.⋆⋆⁺₊✧🦋" | lolcat -p 0.2 | |
| 14 | - | timer "$time" && notif || exit 1 | |
| 37 | + | gum_border "♥ mini timer ♥" | |
| 38 | + | gum_echo "$time" | |
| 39 | + | timer -n "mini timer" "$time" && notif || exit 1 | |
| 15 | 40 | fi |