aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
authorKKV9 <ciaranob.cob@gmail.com>2024-01-28 00:59:05 +0000
committerKKV9 <ciaranob.cob@gmail.com>2024-01-28 00:59:05 +0000
commit1839a6349add03ce1051c6313fcdd8739a62c840 (patch)
treee2187071f86755b1af0a33c85739ad051d0b778d /config/hypr/scripts
parent909b48934f6c5915c3cd67b4a55d3c40594bbbdd (diff)
Switch to pw-play
change from paplay to pw-play
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/ScreenShot.sh6
-rwxr-xr-xconfig/hypr/scripts/Volume.sh2
2 files changed, 4 insertions, 4 deletions
diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh
index 6b701ff2..1cec086d 100755
--- a/config/hypr/scripts/ScreenShot.sh
+++ b/config/hypr/scripts/ScreenShot.sh
@@ -19,7 +19,7 @@ notify_view() {
if [[ "$1" == "active" ]]; then
if [[ -e "${active_window_path}" ]]; then
${notify_cmd_shot} "Screenshot of '${active_window_class}' Saved."
- paplay "${sDIR}/camera-shutter.oga"
+ pw-play "${sDIR}/camera-shutter.oga"
else
${notify_cmd_shot} "Screenshot of '${active_window_class}' not Saved"
fi
@@ -29,7 +29,7 @@ notify_view() {
local check_file="$dir/$file"
if [[ -e "$check_file" ]]; then
${notify_cmd_shot} "Screenshot Saved."
- paplay "${sDIR}/camera-shutter.oga"
+ pw-play "${sDIR}/camera-shutter.oga"
else
${notify_cmd_shot} "Screenshot NOT Saved."
fi
@@ -92,7 +92,7 @@ shotactive() {
shotswappy() {
tmpfile=$(mktemp)
- grim -g "$(slurp)" - >"$tmpfile" && paplay "${sDIR}/camera-shutter.oga" && notify_view "swappy"
+ grim -g "$(slurp)" - >"$tmpfile" && pw-play "${sDIR}/camera-shutter.oga" && notify_view "swappy"
swappy -f - <"$tmpfile"
rm "$tmpfile"
}
diff --git a/config/hypr/scripts/Volume.sh b/config/hypr/scripts/Volume.sh
index 425920e8..8322e29f 100755
--- a/config/hypr/scripts/Volume.sh
+++ b/config/hypr/scripts/Volume.sh
@@ -35,7 +35,7 @@ notify_user() {
notify-send -e -h string:x-canonical-private-synchronous:volume_notif -u low -i "$(get_icon)" "Volume: Muted"
else
notify-send -e -h int:value:"$(get_volume | sed 's/%//')" -h string:x-canonical-private-synchronous:volume_notif -u low -i "$(get_icon)" "Volume: $(get_volume)"
- paplay "$sDIR/audio-volume-change.oga"
+ 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