aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/ScreenShot.sh
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2025-01-14 00:14:52 +0900
committerGitHub <noreply@github.com>2025-01-14 00:14:52 +0900
commitd61b676b9b8b32f73def3d92aa3eb31ab6a2bfbc (patch)
tree644b7851f189af52bfde39a2658cfe0d2fd20d7c /config/hypr/scripts/ScreenShot.sh
parent3573df4a1d0b4c915975ac80275442c35831fb2f (diff)
parentdf57f9890b28aa6f5139e2917cee213031ba0e9c (diff)
Merge pull request #521 from JaKooLit/main
main to development
Diffstat (limited to 'config/hypr/scripts/ScreenShot.sh')
-rwxr-xr-xconfig/hypr/scripts/ScreenShot.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh
index b33a31c7..0c6e8612 100755
--- a/config/hypr/scripts/ScreenShot.sh
+++ b/config/hypr/scripts/ScreenShot.sh
@@ -15,15 +15,15 @@ active_window_path="${dir}/${active_window_file}"
notify_cmd_base="notify-send -t 10000 -A action1=Open -A action2=Delete -h string:x-canonical-private-synchronous:shot-notify"
#notify_swappy="notify-send -h string:x-canonical-private-synchronous:shot-notify -u low -i ${iDIR}/picture.png"
-notify_cmd_shot="${notify_cmd_base} -i ${dir}/${file}"
-notify_cmd_shot_win="${notify_cmd_base} -i ${active_window_path}"
+notify_cmd_shot="${notify_cmd_base} -i ${iDIR}/picture.png"
+notify_cmd_shot_win="${notify_cmd_base} -i ${iDIR}/picture.png"
# notify and view screenshot
notify_view() {
if [[ "$1" == "active" ]]; then
if [[ -e "${active_window_path}" ]]; then
- "${sDIR}/Sounds.sh" --screenshot
- resp=$(timeout 5 ${notify_cmd_shot_win} "Screenshot of '${active_window_class}' Saved.")
+ "${sDIR}/Sounds.sh" --screenshot
+ resp=$(timeout 5 ${notify_cmd_shot_win} "$(printf "\n Screenshot of ${active_window_class}\n Saved.")")
case "$resp" in
action1)
xdg-open "${active_window_path}" &
@@ -33,13 +33,13 @@ notify_view() {
;;
esac
else
- ${notify_cmd_shot} "Screenshot of '${active_window_class}' not Saved"
+ ${notify_cmd_shot} "$(printf "\n Screenshot of ${active_window_class}\n NOT Saved.")"
"${sDIR}/Sounds.sh" --error
fi
elif [[ "$1" == "swappy" ]]; then
"${sDIR}/Sounds.sh" --screenshot
- resp=$(${notify_cmd_shot} "Screenshot Captured (swappy)")
+ resp=$(${notify_cmd_shot} "$(printf "\n Screenshot Captured\n by Swappy")")
case "$resp" in
action1)
swappy -f - <"$tmpfile"
@@ -53,7 +53,7 @@ notify_view() {
local check_file="${dir}/${file}"
if [[ -e "$check_file" ]]; then
"${sDIR}/Sounds.sh" --screenshot
- resp=$(timeout 5 ${notify_cmd_shot} "Screenshot Saved.")
+ resp=$(timeout 5 ${notify_cmd_shot} "$(printf "\n Screenshot Saved")")
case "$resp" in
action1)
xdg-open "${check_file}" &
@@ -63,7 +63,7 @@ notify_view() {
;;
esac
else
- ${notify_cmd_shot} "Screenshot NOT Saved."
+ ${notify_cmd_shot} "$(printf "\n Screenshot NOT Saved")"
"${sDIR}/Sounds.sh" --error
fi
fi
@@ -74,7 +74,7 @@ notify_view() {
# countdown
countdown() {
for sec in $(seq $1 -1 1); do
- notify-send -h string:x-canonical-private-synchronous:shot-notify -t 1000 -i "$iDIR"/timer.png "Taking shot in : $sec"
+ notify-send -h string:x-canonical-private-synchronous:shot-notify -t 1000 -i "$iDIR"/timer.png "$(printf "\n Taking shot in: $sec") secs"
sleep 1
done
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage