aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts
diff options
context:
space:
mode:
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