diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-06-18 21:21:50 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-06-18 21:21:50 +0530 |
commit | e9290b24c939b75b1cbaf38b74f13e1fcd7dd115 (patch) | |
tree | 86135aeed92b316623f882b86b1ee5441fe69b6b /.scripts/sscp | |
parent | e5b21a77a526e03e9d68e10f8857cad1674782e6 (diff) |
simple script to copy recent screenshot to clipboard
Diffstat (limited to '.scripts/sscp')
-rwxr-xr-x | .scripts/sscp | 5 |
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 |