From 0060192bc8d87546061a0256722fd4af230b5455 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 3 Mar 2018 17:07:50 -0300 Subject: Screenshot workaround --- screenshot | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'screenshot') diff --git a/screenshot b/screenshot index 043b869..75a9895 100755 --- a/screenshot +++ b/screenshot @@ -2,4 +2,12 @@ # # Wrapper around scrot +# Workaround +# See https://bbs.archlinux.org/viewtopic.php?id=86507 +# https://groups.google.com/forum/#!msg/linux.debian.bugs.dist/_tmJIFYBfZo/F7x5WFEQCMsJ +if echo "$*" | grep -q -- '-s'; then + sleep 0.2 +fi + +# Take a screenshot scrot '%Y-%m-%d-%H:%M:%S_$wx$h.png' -e 'mv $f ~/load/' $* -- cgit v1.2.3