aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/ScreenShot.sh
diff options
context:
space:
mode:
authorKKV9 <ciaranob.cob@gmail.com>2024-01-28 03:06:42 +0000
committerKKV9 <ciaranob.cob@gmail.com>2024-01-28 03:06:42 +0000
commit4ee1bbf3b1ff83f954e323caf6f3ded444d0761c (patch)
tree0c427eec15e56df047d43248aa38564e82fdb362 /config/hypr/scripts/ScreenShot.sh
parent1839a6349add03ce1051c6313fcdd8739a62c840 (diff)
Move sounds to UserScripts
Allow user to mute desktop sounds
Diffstat (limited to 'config/hypr/scripts/ScreenShot.sh')
-rwxr-xr-xconfig/hypr/scripts/ScreenShot.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh
index 1cec086d..3fb25804 100755
--- a/config/hypr/scripts/ScreenShot.sh
+++ b/config/hypr/scripts/ScreenShot.sh
@@ -3,7 +3,7 @@
# Screenshots scripts
iDIR="$HOME/.config/swaync/icons"
-sDIR="/usr/share/sounds/freedesktop/stereo"
+sDIR="$HOME/.config/hypr/UserScripts"
notify_cmd_shot="notify-send -h string:x-canonical-private-synchronous:shot-notify -u low -i ${iDIR}/picture.png"
time=$(date "+%d-%b_%H-%M-%S")
@@ -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."
- pw-play "${sDIR}/camera-shutter.oga"
+ "${sDIR}/Sounds.sh" --shutter
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."
- pw-play "${sDIR}/camera-shutter.oga"
+ "${sDIR}/Sounds.sh" --shutter
else
${notify_cmd_shot} "Screenshot NOT Saved."
fi
@@ -92,7 +92,7 @@ shotactive() {
shotswappy() {
tmpfile=$(mktemp)
- grim -g "$(slurp)" - >"$tmpfile" && pw-play "${sDIR}/camera-shutter.oga" && notify_view "swappy"
+ grim -g "$(slurp)" - >"$tmpfile" && "${sDIR}/Sounds.sh" --shutter && notify_view "swappy"
swappy -f - <"$tmpfile"
rm "$tmpfile"
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage