Browse Source

Switch to pw-play

change from paplay to pw-play
pull/142/head
KKV9 2 years ago
parent
commit
1839a6349a
  1. 6
      config/hypr/scripts/ScreenShot.sh
  2. 2
      config/hypr/scripts/Volume.sh

6
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"
}

2
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
}

Loading…
Cancel
Save