Krolyxon
Commit 71c5766

Branches

Refs →

nsxiv71c5766

Copy to primary buffer and clipboard

The file names are separated with newlines in the primary and with spaces in
the clipboard.
Author
Bert Münnich
Date
2019-01-01 13:45 +0100
Parent
0495016
Commit
71c5766d896df4f7e3fffb51d77c840ca68be033

+1 −1

1 file changed

  1. M exec/key-handler +1 −1
M exec/key-handler View
@@ -23,7 +23,7 @@ rotate() {
2323 }
2424
2525 case "$1" in
26−"y") tr '\n' ' ' | xclip -i ;;
26+"C-x") xclip -in -filter | tr '\n' ' ' | xclip -in -selection clipboard ;;
2727 "C-c") while read file; do xclip -selection clipboard -target image/png "$file"; done ;;
2828 "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 ;;
2929 "C-g") tr '\n' '\0' | xargs -0 gimp & ;;