dotwryn/bin/desktop/sfx/play.sh

20 lines
521 B
Bash
Raw Normal View History

2020-10-09 23:07:16 +00:00
#!/bin/sh
2021-06-28 17:51:13 +00:00
source "$HOME/.config/wryn/env/env" 2>/dev/null
2020-10-09 23:07:16 +00:00
PLAY() {
2021-02-25 00:38:02 +00:00
eval "$MEDIA_ENGINE" "$SFX_PATH/$1"
2020-10-09 23:07:16 +00:00
}
case $1 in
volume ) PLAY yaru-message.oga ;;
mute ) PLAY smooth-dialog-warning.oga ;;
backlight ) PLAY yaru-audio-volume-change.oga ;;
login ) PLAY yaru-desktop-login.oga ;;
logout ) PLAY smooth-desktop-login.oga ;;
2020-11-17 22:11:42 +00:00
notify ) PLAY yaru-complete.oga ;;
undock ) PLAY yaru-desktop-login.oga ;;
homedock ) PLAY homedock.oga ;;
gamedock ) PLAY gamedock.oga ;;
2021-06-28 17:51:13 +00:00
* ) ls $SFX_PATH ;;
2020-10-09 23:07:16 +00:00
esac