aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKKV9 <ciaranob.cob@gmail.com>2024-01-27 21:54:18 +0000
committerKKV9 <ciaranob.cob@gmail.com>2024-01-27 21:54:18 +0000
commitbee9efdf510a71e4b9b4a44e60f9092ab7bd076c (patch)
tree7fe2bac9a1508146fe65333d10491ef51ef157a6
parent04d1ae7a82ccb0dacd5cd2723f3e41c1a6c98167 (diff)
feat: Notify volume change with sound feedback
Play a sound when changing volume
-rwxr-xr-xconfig/hypr/scripts/Volume.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/hypr/scripts/Volume.sh b/config/hypr/scripts/Volume.sh
index 1c18211f..425920e8 100755
--- a/config/hypr/scripts/Volume.sh
+++ b/config/hypr/scripts/Volume.sh
@@ -3,6 +3,7 @@
# Scripts for volume controls for audio and mic
iDIR="$HOME/.config/swaync/icons"
+sDIR="/usr/share/sounds/freedesktop/stereo"
# Get Volume
get_volume() {
@@ -34,6 +35,7 @@ notify_user() {
notify-send -e -h string:x-canonical-private-synchronous:volume_notif -u low -i "$(get_icon)" "Volume: Muted"
else
notify-send -e -h int:value:"$(get_volume | sed 's/%//')" -h string:x-canonical-private-synchronous:volume_notif -u low -i "$(get_icon)" "Volume: $(get_volume)"
+ paplay "$sDIR/audio-volume-change.oga"
fi
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage