aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/Sounds.sh
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2024-04-24 15:20:42 +0900
committerGitHub <noreply@github.com>2024-04-24 15:20:42 +0900
commit6352d78fd42c021094842f63a3a08b31e9177955 (patch)
tree26bfe9901e36c204c2fe8434657c703780106b73 /config/hypr/UserScripts/Sounds.sh
parent8cd047fcde9dc62f80c2afde4dc9a9c8102f4775 (diff)
parente25a8a4f487ccb4f68682f4885262152ef955f39 (diff)
Merge branch 'development' into rofi
Diffstat (limited to 'config/hypr/UserScripts/Sounds.sh')
-rwxr-xr-xconfig/hypr/UserScripts/Sounds.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/config/hypr/UserScripts/Sounds.sh b/config/hypr/UserScripts/Sounds.sh
index 0d2bfff7..fb8a1f57 100755
--- a/config/hypr/UserScripts/Sounds.sh
+++ b/config/hypr/UserScripts/Sounds.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# This script is used to play system sounds.
theme="freedesktop" # Set the theme for the system sounds.
@@ -31,8 +31,12 @@ else
fi
# Set the directory defaults for system sounds.
+if [ -d "/run/current-system/sw/share/sounds" ]; then
+ systemDIR="/run/current-system/sw/share/sounds" # NixOS
+else
+ systemDIR="/usr/share/sounds"
+fi
userDIR="$HOME/.local/share/sounds"
-systemDIR="/usr/share/sounds"
defaultTheme="freedesktop"
# Prefer the user's theme, but use the system's if it doesn't exist.
@@ -62,4 +66,4 @@ if ! test -f "$sound_file"; then
fi
fi
fi
-pw-play "$sound_file"
+pw-play "$sound_file" \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage