From 4c47ea99b977a0627bac3c0da7f2953cd875bcfd Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 18 Aug 2021 23:41:30 +0300 Subject: feat(sxiv): copy image on Ctrl+x+c --- sxiv/.config/sxiv/exec/key-handler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sxiv/.config') 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 -- cgit v1.2.3