aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts
diff options
context:
space:
mode:
authorKKV9 <ciaranob.cob@gmail.com>2024-01-28 03:06:42 +0000
committerKKV9 <ciaranob.cob@gmail.com>2024-01-28 03:06:42 +0000
commit4ee1bbf3b1ff83f954e323caf6f3ded444d0761c (patch)
tree0c427eec15e56df047d43248aa38564e82fdb362 /config/hypr/UserScripts
parent1839a6349add03ce1051c6313fcdd8739a62c840 (diff)
Move sounds to UserScripts
Allow user to mute desktop sounds
Diffstat (limited to 'config/hypr/UserScripts')
-rwxr-xr-xconfig/hypr/UserScripts/Sounds.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/config/hypr/UserScripts/Sounds.sh b/config/hypr/UserScripts/Sounds.sh
new file mode 100755
index 00000000..6bec1ea3
--- /dev/null
+++ b/config/hypr/UserScripts/Sounds.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# This script is used to play system sounds.
+
+# Set the directory for system sounds.
+sDIR="/usr/share/sounds/freedesktop/stereo"
+
+# Set to true to mute the system sounds.
+muted=false
+
+if [[ "$muted" = true ]]; then
+ exit 0
+fi
+
+if [[ "$1" == "--shutter" ]]; then
+ pw-play "$sDIR/camera-shutter.oga"
+elif [[ "$1" == "--volume" ]]; then
+ pw-play "$sDIR/audio-volume-change.oga"
+fi
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage