diff --git a/bin/desktop/sfx/canberra-gtk-play b/bin/desktop/sfx/canberra-gtk-play new file mode 100755 index 0000000..07c3e78 --- /dev/null +++ b/bin/desktop/sfx/canberra-gtk-play @@ -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 diff --git a/bin/desktop/sfx/sfx b/bin/desktop/sfx/sfx new file mode 120000 index 0000000..309b1b5 --- /dev/null +++ b/bin/desktop/sfx/sfx @@ -0,0 +1 @@ +sfx \ No newline at end of file diff --git a/config/i3/sfx b/config/i3/sfx deleted file mode 100755 index 22331a2..0000000 --- a/config/i3/sfx +++ /dev/null @@ -1,57 +0,0 @@ -#!/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 - -alsa-front-center.wav -alsa-front-left.wav -alsa-front-right.wav -alsa-noise.wav -alsa-rear-center.wav -alsa-rear-left.wav -alsa-rear-right.wav -alsa-side-left.wav -alsa-side-right.wav -freedesktop-bell.oga -freedesktop-camera-shutter.oga -freedesktop-complete.oga -freedesktop-message.oga -smooth-count-down.oga -smooth-desktop-login-1.oga -smooth-desktop-login-2.oga -smooth-desktop-login.oga -smooth-desktop-logout.oga -smooth-dialog-error.oga -smooth-dialog-information.oga -smooth-dialog-question.oga -smooth-dialog-warning.oga -smooth-message-new-instant.oga -smooth-message-sent-instant.oga -smooth-phone-incoming-call.oga -smooth-phone-outgoing-busy.oga -smooth-phone-outgoing-calling.oga -smooth-trash-empty.oga -yaru-audio-volume-change.oga -yaru-battery-low.oga -yaru-bell.oga -yaru-complete.oga -yaru-desktop-login.oga -yaru-device-added.oga -yaru-device-removed.oga -yaru-dialog-error.oga -yaru-message-new-instant.oga -yaru-message.oga