From 1c460fc313143a29a5f48f05727f16cfaebfc3c3 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Thu, 9 Jul 2020 01:08:02 +0200 Subject: Added i to copy image to clipboard on sxiv. --- files/sxiv/key-handler | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/sxiv/key-handler b/files/sxiv/key-handler index e340f5b..dc13548 100755 --- a/files/sxiv/key-handler +++ b/files/sxiv/key-handler @@ -50,9 +50,10 @@ w: Set as wallpaper. . r: Rotate clockwise. . R: Rotate counter-clockwise. . f: Flop (horizontally). . -f: Flip (vertically). . +F: Flip (vertically). . y: Yank filename to clipboard. . Y: Yank file path to clipboard. . +i: Yank image to clipboard. . d: Move file to litter. . n: Rename file. . N: Open in a new instance of sxiv. . @@ -94,6 +95,9 @@ do "S") echo -n "$(readlink -f "$file")" | xsel -ib && dunstify "$(xsel -ob) copied to clipboard" $BROWSER "https://tineye.com/" ;; + "i") + xclip -selection clipboard -t image/png "$(readlink -f "$file")" && dunstify "$file copied to clipboard as image." + ;; "c") [ -z "$destdir" ] && destdir="$(selectPath.sh "Copy image(s) to:")" [ -z "$destdir" ] && exit -- cgit v1.2.1