3 # gets executed each time dunst receives a notification
6 if echo "$2" | grep -q 'instantASSIST'; then
10 if ! echo "$1" | grep -Eiq '(discord|spotify|thunderbird|mailspring)'; then
11 if ! [ -e ~/instantos/notifications/notification.ogg ]; then
12 if ping -c 1 google.com; then
13 mkdir -p ~/instantos/notifications/
14 wget -qO ~/instantos/notifications/notification.ogg \
15 "https://notificationsounds.com/notification-sounds/me-too-603/download/ogg"
20 mpv ~/instantos/notifications/notification.ogg
23 # escape characters that cause problems with pango
24 # some apps dont need/already have notification sounds
26 echo "$@" | sed 's/&/&/g'
30 echo "($(date +%H:%M)) [$(cleanstring $1)] <b>$(cleanstring $2)</b> | <i>$(cleanstring $3)</i>" >>/tmp/notifications/notif.txt