aboutsummaryrefslogtreecommitdiff
path: root/files/sxiv
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2020-07-09 01:08:02 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2020-07-09 01:08:02 +0200
commit1c460fc313143a29a5f48f05727f16cfaebfc3c3 (patch)
treeb85ee5931cf167a8e353806c29cc1e95fb8bbfc2 /files/sxiv
parent918461abd5f899c076f4c9c3a77fa8e51f9d0abb (diff)
downloadconfigs-1c460fc313143a29a5f48f05727f16cfaebfc3c3.tar.gz
configs-1c460fc313143a29a5f48f05727f16cfaebfc3c3.zip
Added i to copy image to clipboard on sxiv.
Diffstat (limited to 'files/sxiv')
-rwxr-xr-xfiles/sxiv/key-handler6
1 files changed, 5 insertions, 1 deletions
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