blob: aaa2e43e9232ecde0e26078ef31c84bf82da7d86 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#!/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")"
|