scripts/dunst_message.sh

13 lines
229 B
Bash
Executable File

#!/bin/sh
appname=$1
sound="message"
if [ $appname = "Telegram Desktop" ]; then
sound="window-attention"
fi
echo "$1" >> /tmp/test
echo "$sound" >> /tmp/test
mpv --no-terminal /usr/share/sounds/freedesktop/stereo/$sound.oga&