2019-12-15 17:31:59 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
appname=$1
|
|
|
|
sound="message"
|
|
|
|
|
2022-04-04 00:01:26 +03:00
|
|
|
if [ "$appname" = "Telegram Desktop" ] || [ "$appname" = "Element"]; then
|
2019-12-15 17:31:59 +02:00
|
|
|
sound="window-attention"
|
|
|
|
fi
|
|
|
|
|
2022-04-03 22:54:40 +03:00
|
|
|
echo "$1" >> /tmp/test
|
|
|
|
echo "$sound" >> /tmp/test
|
2019-12-15 17:31:59 +02:00
|
|
|
mpv --no-terminal /usr/share/sounds/freedesktop/stereo/$sound.oga&
|