aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/Sounds.sh
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2026-01-08 21:10:18 -0500
committerDon Williams <don.e.williams@gmail.com>2026-01-08 21:10:18 -0500
commit10f3c5d0792ef5d652e0546fa8c8181a43f47c99 (patch)
treee1fc3be263cf0c8678703323bfffad3efc3e60f1 /config/hypr/scripts/Sounds.sh
parenta35a1c4e980081566287dd6e2510f658f046cad1 (diff)
Fixing more scripts in Hyprland-Dots
- Hypridle.sh now launches hypridle in the background (& disown) - when enabling the daemon, preventing the toggle command from hanging Waybar. - RofiSearch.sh verifies that jq is available, - captures the user’s query explicitly - URL-encodes it via jq @uri, - opens the configured search engine with the encoded query instead of dropping the term. - Sounds.sh now tries pw-play, then paplay, then aplay, - emitting an error if none are installed - the script no longer calls the non-existent pa-play. On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/Hypridle.sh modified: config/hypr/scripts/RofiSearch.sh modified: config/hypr/scripts/Sounds.sh
Diffstat (limited to 'config/hypr/scripts/Sounds.sh')
-rwxr-xr-xconfig/hypr/scripts/Sounds.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/config/hypr/scripts/Sounds.sh b/config/hypr/scripts/Sounds.sh
index b372d714..e92248da 100755
--- a/config/hypr/scripts/Sounds.sh
+++ b/config/hypr/scripts/Sounds.sh
@@ -73,5 +73,18 @@ if ! test -f "$sound_file"; then
fi
fi
-# pipewire priority, fallback pulseaudio
-pw-play "$sound_file" || pa-play "$sound_file" \ No newline at end of file
+# Play the sound: prefer PipeWire, then PulseAudio, then ALSA
+if command -v pw-play >/dev/null 2>&1; then
+ pw-play "$sound_file" && exit 0
+fi
+
+if command -v paplay >/dev/null 2>&1; then
+ paplay "$sound_file" && exit 0
+fi
+
+if command -v aplay >/dev/null 2>&1; then
+ aplay "$sound_file" && exit 0
+fi
+
+echo "Error: No suitable audio player (pw-play/paplay/aplay) found."
+exit 1
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage