From 0dd6a2847d9abb59f1f0e05cb0e57b0afaff171e Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 8 Apr 2022 19:23:53 +0200 Subject: [PATCH] screenshot: wait 1/60th second before taking the screenshot This helps to avoid to capture the selection rectangle. --- bin/screenshot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/screenshot b/bin/screenshot index 5b297df..286ecb3 100755 --- a/bin/screenshot +++ b/bin/screenshot @@ -10,7 +10,7 @@ case $1 in echo -n $target | xclip -selection clipboard ;; window) - maim -u -s -b 5 -l -c 0.3,0.4,0.6,0.4 \ + maim -u -s -b 5 -l -c 0.3,0.4,0.6,0.4 -d 0.02 \ | xclip -selection clipboard -t image/png notify-send -i camera-photo "Screenshot" "Saved to clipboard" ;;