summaryrefslogtreecommitdiff
path: root/local/bin/screenie
diff options
context:
space:
mode:
Diffstat (limited to 'local/bin/screenie')
-rwxr-xr-xlocal/bin/screenie8
1 files changed, 8 insertions, 0 deletions
diff --git a/local/bin/screenie b/local/bin/screenie
new file mode 100755
index 0000000..5dcf99b
--- /dev/null
+++ b/local/bin/screenie
@@ -0,0 +1,8 @@
+#!/bin/sh
+DIR="$HOME/Pictures/Screenshots"
+FILE="$DIR/shot_$(date +%s).png"
+
+mkdir -p "$DIR"
+maim -s "$FILE"
+xclip -selection clipboard -t image/png -i "$FILE"
+notify-send "Region Captured" "Saved and copied to clipboard"