Browse Source

Merge pull request #190 from JohnRTitor/patch-sounds

userscripts/Sounds.sh: for Non-FHS systems like Nixos, use the runtime dir
pull/200/head
Ja.KooLit 2 years ago committed by GitHub
parent
commit
3aadf05460
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      config/hypr/UserScripts/Sounds.sh

8
config/hypr/UserScripts/Sounds.sh

@ -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"
Loading…
Cancel
Save