-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotify.sh
More file actions
executable file
·56 lines (53 loc) · 1.4 KB
/
Copy pathnotify.sh
File metadata and controls
executable file
·56 lines (53 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
TITLE="Claude Code"
ICON="$HOME/.claude/claude-icon.png"
done_msgs=(
"Aight I'm done"
"Yo it's finished, come look"
"Done, where you at"
"Finished bro, you seeing this"
"Okay that's a wrap"
"It's done, I'm out"
"Bro I finished, wyd"
"Done deal, pull up and check"
"Aight that's cooked, come look"
"Finished, told you I got it"
"Done, stop scrolling and check"
"Wrapped it up, your turn"
)
input_msgs=(
"Bro wake up, I need you"
"Yo where you at"
"Hello?? you there"
"Bro come here real quick"
"Aye I need you for a sec"
"You alive? need your input"
"Pull up, I got a question"
"Yo respond, I'm stuck"
"Where'd you go bro"
"Need a hand over here"
"Oi, kinda stuck without you"
"You good? I need something"
)
case "$1" in
done)
SOUND="Glass"
MESSAGE="${done_msgs[$((RANDOM % ${#done_msgs[@]}))]}"
;;
input)
SOUND="Ping"
MESSAGE="${input_msgs[$((RANDOM % ${#input_msgs[@]}))]}"
;;
*)
MESSAGE="${1:-Claude Code}"
TITLE="${2:-$TITLE}"
SOUND="${3:-Glass}"
;;
esac
if command -v terminal-notifier &>/dev/null; then
ARGS=(-title "$TITLE" -message "$MESSAGE" -sound "$SOUND")
[ -f "$ICON" ] && ARGS+=(-appIcon "$ICON" -contentImage "$ICON")
terminal-notifier "${ARGS[@]}"
else
osascript -e "display notification \"$MESSAGE\" with title \"$TITLE\" sound name \"$SOUND\""
fi