aboutsummaryrefslogtreecommitdiff
path: root/sxiv
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2021-08-18 23:41:30 +0300
committereug-vs <eugene@eug-vs.xyz>2021-08-18 23:41:30 +0300
commit4c47ea99b977a0627bac3c0da7f2953cd875bcfd (patch)
treef1aaa85e14749158bad91cc7e09cc12f3a6f69f0 /sxiv
parent42ab1db338d684ae3bca39c661d8fb80ad29ba48 (diff)
downloaddotfiles-4c47ea99b977a0627bac3c0da7f2953cd875bcfd.tar.gz
feat(sxiv): copy image on Ctrl+x+c
Diffstat (limited to 'sxiv')
-rwxr-xr-xsxiv/.config/sxiv/exec/key-handler2
1 files changed, 1 insertions, 1 deletions
diff --git a/sxiv/.config/sxiv/exec/key-handler b/sxiv/.config/sxiv/exec/key-handler
index 77e4a45..a182a84 100755
--- a/sxiv/.config/sxiv/exec/key-handler
+++ b/sxiv/.config/sxiv/exec/key-handler
@@ -9,7 +9,7 @@ do
"C-r")
convert -rotate 90 "$file" "$file" ;;
"C-c")
- echo -n "$file" | xclip -selection clipboard ;;
+ xclip -selection clipboard -target image/png -i < "$file" ;;
"C-w")
ln -sf "$file" "$WALLPAPER_LOCATION" && xwallpaper --zoom "$file" ;;
esac