Browse Source

added error sound for screenshot not saved

pull/321/head
JaKooLit 2 years ago
parent
commit
7f08f09498
  1. 2
      config/hypr/scripts/ScreenShot.sh
  2. 7
      config/hypr/scripts/Sounds.sh

2
config/hypr/scripts/ScreenShot.sh

@ -22,6 +22,7 @@ notify_view() {
"${sDIR}/Sounds.sh" --screenshot
else
${notify_cmd_shot} "Screenshot of '${active_window_class}' not Saved"
"${sDIR}/Sounds.sh" --error
fi
elif [[ "$1" == "swappy" ]]; then
${notify_cmd_shot} "Screenshot Captured."
@ -32,6 +33,7 @@ notify_view() {
"${sDIR}/Sounds.sh" --screenshot
else
${notify_cmd_shot} "Screenshot NOT Saved."
"${sDIR}/Sounds.sh" --error
fi
fi
}

7
config/hypr/scripts/Sounds.sh

@ -26,8 +26,13 @@ elif [[ "$1" == "--volume" ]]; then
exit 0
fi
soundoption="audio-volume-change.*"
elif [[ "$1" == "--error" ]]; then
if [[ "$muteScreenshots" = true ]]; then
exit 0
fi
soundoption="dialog-error.*"
else
echo -e "Available sounds: --screenshot, --volume"
echo -e "Available sounds: --screenshot, --volume, --error"
exit 0
fi

Loading…
Cancel
Save