aboutsummaryrefslogtreecommitdiff
path: root/screenshot
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-03-03 17:07:50 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-03-03 17:07:50 -0300
commit0060192bc8d87546061a0256722fd4af230b5455 (patch)
tree9d15e70e0832b585fb864c5fc62f86ba4e87150c /screenshot
parent6da01baedd270be492474cebcf1e56c31004a48d (diff)
downloadscripts-0060192bc8d87546061a0256722fd4af230b5455.tar.gz
scripts-0060192bc8d87546061a0256722fd4af230b5455.tar.bz2
Screenshot workaround
Diffstat (limited to 'screenshot')
-rwxr-xr-xscreenshot8
1 files changed, 8 insertions, 0 deletions
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/' $*