aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKKV9 <ciaranob.cob@gmail.com>2024-01-28 20:30:53 +0000
committerKKV9 <ciaranob.cob@gmail.com>2024-01-28 20:30:53 +0000
commited716d91bc6c4f5ebca9bbfb24ceba48137538cc (patch)
treeb27480c4f2010591a14731c9405e93d57bb5f8ba
parent47101284b0b654eb0c83a1bd20725c7580eb87a0 (diff)
Use correct sound file for screen capture
Use screen-capture instead of camera-shutter for screenshots
-rwxr-xr-xconfig/hypr/UserScripts/Sounds.sh6
-rwxr-xr-xconfig/hypr/scripts/ScreenShot.sh6
2 files changed, 6 insertions, 6 deletions
diff --git a/config/hypr/UserScripts/Sounds.sh b/config/hypr/UserScripts/Sounds.sh
index a2523a24..9aaafcf0 100755
--- a/config/hypr/UserScripts/Sounds.sh
+++ b/config/hypr/UserScripts/Sounds.sh
@@ -15,18 +15,18 @@ if [[ "$muted" = true ]]; then
fi
# Choose the sound to play.
-if [[ "$1" == "--shutter" ]]; then
+if [[ "$1" == "--screenshot" ]]; then
if [[ "$mutedScreenshots" = true ]]; then
exit 0
fi
- soundoption="camera-shutter.*"
+ soundoption="screen-capture.*"
elif [[ "$1" == "--volume" ]]; then
if [[ "$muteVolume" = true ]]; then
exit 0
fi
soundoption="audio-volume-change.*"
else
- echo -e "Available sounds: --shutter, --volume"
+ echo -e "Available sounds: --screenshot, --volume"
exit 0
fi
diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh
index f56c58df..fa1b40ad 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."
- "${sDIR}/Sounds.sh" --shutter
+ "${sDIR}/Sounds.sh" --screenshot
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."
- "${sDIR}/Sounds.sh" --shutter
+ "${sDIR}/Sounds.sh" --screenshot
else
${notify_cmd_shot} "Screenshot NOT Saved."
fi
@@ -91,7 +91,7 @@ shotactive() {
shotswappy() {
tmpfile=$(mktemp)
- grim -g "$(slurp)" - >"$tmpfile" && "${sDIR}/Sounds.sh" --shutter && notify_view "swappy"
+ grim -g "$(slurp)" - >"$tmpfile" && "${sDIR}/Sounds.sh" --screenshot && 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