summaryrefslogtreecommitdiffstats
path: root/.local/bin/screenshot
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/screenshot')
-rwxr-xr-x.local/bin/screenshot6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/screenshot b/.local/bin/screenshot
new file mode 100755
index 0000000..085c47d
--- /dev/null
+++ b/.local/bin/screenshot
@@ -0,0 +1,6 @@
+#!/bin/sh
+FILE=~/Pictures/$(date --iso-8601=seconds).png
+scrot -izfps -F - > $FILE
+xclip -in -selection clipboard -target image/png < $FILE
+# | xclip -in -selection clipboard -target image/png \
+# && xclip -out > $(echo -n ~/Pictures/$(date --iso-8601=seconds).png)