]> gitweb.fluxo.info Git - scripts.git/commitdiff
Screenshot workaround
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 3 Mar 2018 20:07:50 +0000 (17:07 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 3 Mar 2018 20:07:50 +0000 (17:07 -0300)
screenshot

index 043b8699ac5557a8c8821ebfea834aeaacf38939..75a98950b702e8875e3ce83509f2b847e3716853 100755 (executable)
@@ -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/' $*