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