refactored sfx engine

This commit is contained in:
Wryn Wagner
2020-10-09 17:07:16 -06:00
parent 475cf81886
commit 41677c3a65
3 changed files with 19 additions and 57 deletions

View File

@ -0,0 +1,18 @@
#!/bin/sh
ENGINE="$(which canberra-gtk-play) -f"
SFX="$HOME/Personal/sfx";
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 ;;
* ) ls $SFX ;;
esac

1
bin/desktop/sfx/sfx Symbolic link
View File

@ -0,0 +1 @@
sfx