From 8c375f90911726e369fab86ea7f9ba5b846280ab Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 27 Jan 2025 00:10:46 +0000 Subject: [PATCH] [x11_vimshot.sh]: Only send filepath notification if screenshot taken --- src/x11_vimshot.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/x11_vimshot.sh b/src/x11_vimshot.sh index 2fb15b3..7a80618 100755 --- a/src/x11_vimshot.sh +++ b/src/x11_vimshot.sh @@ -13,6 +13,4 @@ fi notify-send "$basename" "Taking screenshot to $filepath" sleep 5 -maim --select --hidecursor "$filepath" - -notify-send --icon "$filepath" "$basename" "Screenshot saved to: $filepath" +maim --select --hidecursor "$filepath" && notify-send --icon "$filepath" "$basename" "Screenshot saved to: $filepath"