From e9290b24c939b75b1cbaf38b74f13e1fcd7dd115 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sat, 18 Jun 2022 21:21:50 +0530 Subject: simple script to copy recent screenshot to clipboard --- .scripts/sscp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 .scripts/sscp (limited to '.scripts/sscp') 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 -- cgit v1.2.3