diff options
author | eug-vs <eugene@eug-vs.xyz> | 2021-08-18 23:41:30 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2021-08-18 23:41:30 +0300 |
commit | 4c47ea99b977a0627bac3c0da7f2953cd875bcfd (patch) | |
tree | f1aaa85e14749158bad91cc7e09cc12f3a6f69f0 /sxiv | |
parent | 42ab1db338d684ae3bca39c661d8fb80ad29ba48 (diff) | |
download | dotfiles-4c47ea99b977a0627bac3c0da7f2953cd875bcfd.tar.gz |
feat(sxiv): copy image on Ctrl+x+c
Diffstat (limited to 'sxiv')
-rwxr-xr-x | sxiv/.config/sxiv/exec/key-handler | 2 |
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 |