nsxivc2560f8
Add key-handler action to copy image to clipboard
Thanks ploth for coming up with this: https://github.com/muennich/sxiv/issues/247#issuecomment-321316306 Replaces optional dependency on xsel(1) to xclip(1) as it supports this. Fixes issue #247
+2 −1
1 file changed
- M exec/key-handler +2 −1
| @@ -44,7 +44,8 @@ tag_del() { | |||
| 44 | 44 | } | |
| 45 | 45 | ||
| 46 | 46 | case "$KEY" in | |
| 47 | − | "C-c") tr '\n' ' ' | xsel -i ;; | |
| 47 | + | "y") tr '\n' ' ' | xclip -i ;; | |
| 48 | + | "C-c") while read file; do xclip -selection clipboard -target image/png "$file"; done ;; | |
| 48 | 49 | "C-e") while read file; do urxvt -bg "#444" -fg "#eee" -sl 0 -title "$file" -e sh -c "exiv2 pr -q -pa '$file' | less" & done ;; | |
| 49 | 50 | "C-g") tr '\n' '\0' | xargs -0 gimp & ;; | |
| 50 | 51 | "C-comma") rotate 270 ;; | |