From 932248dbab3bc2951be7cb7c25bb6d4d20964e24 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 21 Mar 2023 13:19:47 +0800 Subject: Improve openbox --- bin/desktop/takeshot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/desktop/takeshot') diff --git a/bin/desktop/takeshot b/bin/desktop/takeshot index 09252f3..9f34f26 100755 --- a/bin/desktop/takeshot +++ b/bin/desktop/takeshot @@ -53,7 +53,8 @@ shotwin () { } shotarea () { - cd ${dir} && maim -u -f png -s -b 2 -c 0.35,0.55,0.855 | tee "$file" | xclip -selection clipboard -t image/png + set -o pipefail + cd ${dir} && maim -u -f png -s -b 2 -c 0.35,0.55,0.855 | tee "$file" | xclip -selection clipboard -t image/png && \ notify_view } -- cgit v1.2.3-70-g09d2