summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNullspoon <nullspoon@iohq.net>2014-09-21 13:56:50 -0600
committerNullspoon <nullspoon@iohq.net>2014-09-21 13:56:50 -0600
commitabf5f0a1742a3deca17ce0c5f7e93ff21e5f7b33 (patch)
treeef4489779cd1ac9f5a9dcb56d3c4266e9a6e39b9
parent4452ac6f9588d78ce5f24f0fa0f48991de993249 (diff)
downloadbin-abf5f0a1742a3deca17ce0c5f7e93ff21e5f7b33.tar.gz
bin-abf5f0a1742a3deca17ce0c5f7e93ff21e5f7b33.tar.xz
Added screenshot script
-rwxr-xr-xscreenshot.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/screenshot.sh b/screenshot.sh
new file mode 100755
index 0000000..e3b638d
--- /dev/null
+++ b/screenshot.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+#
+# A simple screenshot script. Very handy for calling a specific from a window
+# manager using custom hotkeys (eg: i3)
+#
+# Requirements:
+# imagemagick
+#
+savePath=~/Pictures/screenshots/
+
+if [[ ! -d $savePath ]]; then
+ mkdir -p $savePath
+fi
+
+# Wait two seconds
+sleep 2;
+
+# Get our file suffix
+date=`date '+%Y%m%d-%H%M%S'`
+
+# And action!
+import $savePath/screen.$date.jpg

Generated by cgit