aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts
diff options
context:
space:
mode:
authorKKV9 <ciaranob.cob@gmail.com>2024-01-28 20:08:38 +0000
committerKKV9 <ciaranob.cob@gmail.com>2024-01-28 20:08:38 +0000
commit47101284b0b654eb0c83a1bd20725c7580eb87a0 (patch)
treeecd8abd93ade22784864c679c31bb44f1df80648 /config/hypr/UserScripts
parenta12faec054ccdff3faec2f82390c3b39f3816036 (diff)
Allow muting individual sounds
Allow user to mute volume ONLY or screenshots ONLY.
Diffstat (limited to 'config/hypr/UserScripts')
-rwxr-xr-xconfig/hypr/UserScripts/Sounds.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/hypr/UserScripts/Sounds.sh b/config/hypr/UserScripts/Sounds.sh
index 99ec9daa..a2523a24 100755
--- a/config/hypr/UserScripts/Sounds.sh
+++ b/config/hypr/UserScripts/Sounds.sh
@@ -5,6 +5,10 @@
theme="freedesktop" # Set the theme for the system sounds.
muted=false # Set to true to mute the system sounds.
+# Mute individual sounds here.
+mutedScreenshots=false
+muteVolume=false
+
# Exit if the system sounds are muted.
if [[ "$muted" = true ]]; then
exit 0
@@ -12,8 +16,14 @@ fi
# Choose the sound to play.
if [[ "$1" == "--shutter" ]]; then
+ if [[ "$mutedScreenshots" = true ]]; then
+ exit 0
+ fi
soundoption="camera-shutter.*"
elif [[ "$1" == "--volume" ]]; then
+ if [[ "$muteVolume" = true ]]; then
+ exit 0
+ fi
soundoption="audio-volume-change.*"
else
echo -e "Available sounds: --shutter, --volume"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage