dotwryn/bin/desktop/sfx/canberra-gtk-play.sh

23 lines
559 B
Bash
Raw Normal View History

2020-10-09 23:07:16 +00:00
#!/bin/sh
ENGINE="$(which canberra-gtk-play) -f"
SFX="$HOME/Personal/sfx";
2021-02-24 17:03:06 +00:00
source "$HOME/.config/wryn/env.zsh"
2020-10-09 23:07:16 +00:00
PLAY() {
eval "$ENGINE" "$SFX/$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 ;;
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 ;;
2020-10-09 23:07:16 +00:00
* ) ls $SFX ;;
esac