blob: 810a145ac926f2bcb2115c572197a35d87fc0ba8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
escape() {
printf "%s" "$1" | sed 's#\\#\\\\#g'
}
# FOCUS=$(swaymsg -t get_tree | jq '..|objects|select(.focused==true)|.app_id' | grep -c senpai)
# if [ "$HERE" -eq 0 ] || [ "$FOCUS" -eq 0 ]; then
# notify-send "[$BUFFER] $SENDER" "$(escape "$MESSAGE")"
# fi
notify-send \
-a senpai \
-i "$(iconez -n message-reply-text-outline)" \
-c audible \
"[$BUFFER] $SENDER" \
"$(escape "$MESSAGE")"
|