aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/ScreenShot.sh
diff options
context:
space:
mode:
authorKiran George <kirangeorge1995@gmail.com>2025-01-12 10:51:47 +0530
committerKiran George <kirangeorge1995@gmail.com>2025-01-12 10:51:47 +0530
commit3c653c8a11c793b6377884f02ee80f7cd638d8df (patch)
tree0c034dd1c1733f2316df8865d7b6b2a021fbbcfd /config/hypr/scripts/ScreenShot.sh
parenteb3ec613d758f52bbe5471a7fe69e299ad6ec0aa (diff)
Added timeout
Diffstat (limited to 'config/hypr/scripts/ScreenShot.sh')
-rwxr-xr-xconfig/hypr/scripts/ScreenShot.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh
index bd3814e4..ceef9dad 100755
--- a/config/hypr/scripts/ScreenShot.sh
+++ b/config/hypr/scripts/ScreenShot.sh
@@ -21,7 +21,7 @@ notify_cmd_shot_win="${notify_cmd_base} -i ${active_window_path}"
notify_view() {
if [[ "$1" == "active" ]]; then
if [[ -e "${active_window_path}" ]]; then
- resp=$(${notify_cmd_shot_win} "Screenshot of '${active_window_class}' Saved.")
+ resp=$(timeout 10 ${notify_cmd_shot_win} "Screenshot of '${active_window_class}' Saved.")
"${sDIR}/Sounds.sh" --screenshot
case "$resp" in
action1)
@@ -36,7 +36,7 @@ notify_view() {
"${sDIR}/Sounds.sh" --error
fi
elif [[ "$1" == "swappy" ]]; then
- resp=$(${notify_cmd_shot} "Screenshot Captured.")
+ resp=$(timeout 10 ${notify_cmd_shot} "Screenshot Captured.")
case "$resp" in
action1)
xdg-open "${dir}/${file}" &
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage