summaryrefslogtreecommitdiff
path: root/.scripts
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-06-18 21:21:50 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-06-18 21:21:50 +0530
commite9290b24c939b75b1cbaf38b74f13e1fcd7dd115 (patch)
tree86135aeed92b316623f882b86b1ee5441fe69b6b /.scripts
parente5b21a77a526e03e9d68e10f8857cad1674782e6 (diff)
simple script to copy recent screenshot to clipboard
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/sscp5
1 files changed, 5 insertions, 0 deletions
diff --git a/.scripts/sscp b/.scripts/sscp
new file mode 100755
index 0000000..ffe1701
--- /dev/null
+++ b/.scripts/sscp
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+latestss=$(ls -t $HOME/pix/Screenshots/ | head -n5 | dmenu -l 5)
+
+xclip -selection clipboard -t image/png -i $HOME/pix/Screenshots/$latestss