diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2024-04-24 15:20:42 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-24 15:20:42 +0900 |
| commit | 6352d78fd42c021094842f63a3a08b31e9177955 (patch) | |
| tree | 26bfe9901e36c204c2fe8434657c703780106b73 /config/hypr/UserScripts/Sounds.sh | |
| parent | 8cd047fcde9dc62f80c2afde4dc9a9c8102f4775 (diff) | |
| parent | e25a8a4f487ccb4f68682f4885262152ef955f39 (diff) | |
Merge branch 'development' into rofi
Diffstat (limited to 'config/hypr/UserScripts/Sounds.sh')
| -rwxr-xr-x | config/hypr/UserScripts/Sounds.sh | 10 |
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 |
