Przeglądaj źródła

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
master
Bert Münnich 7 lat temu
rodzic
commit
c2560f8d0b
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      exec/key-handler

+ 2
- 1
exec/key-handler Wyświetl plik

@@ -44,7 +44,8 @@ tag_del() {
}

case "$KEY" in
"C-c") tr '\n' ' ' | xsel -i ;;
"y") tr '\n' ' ' | xclip -i ;;
"C-c") while read file; do xclip -selection clipboard -target image/png "$file"; done ;;
"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 ;;
"C-g") tr '\n' '\0' | xargs -0 gimp & ;;
"C-comma") rotate 270 ;;


Ładowanie…
Anuluj
Zapisz