aboutsummaryrefslogtreecommitdiff
path: root/screenshot
diff options
context:
space:
mode:
Diffstat (limited to 'screenshot')
-rwxr-xr-xscreenshot13
1 files changed, 13 insertions, 0 deletions
diff --git a/screenshot b/screenshot
new file mode 100755
index 0000000..75a9895
--- /dev/null
+++ b/screenshot
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# 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/' $*