dotwryn/bin/desktop/sfx/play.sh
2021-06-28 11:51:13 -06:00

20 lines
521 B
Bash
Executable File

#!/bin/sh
source "$HOME/.config/wryn/env/env" 2>/dev/null
PLAY() {
eval "$MEDIA_ENGINE" "$SFX_PATH/$1"
}
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 ;;
notify ) PLAY yaru-complete.oga ;;
undock ) PLAY yaru-desktop-login.oga ;;
homedock ) PLAY homedock.oga ;;
gamedock ) PLAY gamedock.oga ;;
* ) ls $SFX_PATH ;;
esac