aboutsummaryrefslogtreecommitdiff
path: root/screenshot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'screenshot.sh')
-rwxr-xr-xscreenshot.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/screenshot.sh b/screenshot.sh
new file mode 100755
index 0000000..21f490a
--- /dev/null
+++ b/screenshot.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Takes a screenshot
+
+name="$(date +"%y%m%d_%H%M%S")".png
+file="$HOME/images/screenshots/""$name"
+maim -m 8 $file && notify-send -t 800 "Screenshot $name taken."