xclip
xclip copied to clipboard
Exchange PRIMARY and SECONDARY using target side-effects
ICCCM says it is possible to exchange PRIMARY and SECONDARY selections without copying to a third selection by using target side-effects. We should implement. The solution we offer right now is rather ugly:
$ xclip -sel s | xclip -sel b
$ xclip | xclip -sel s
$ xclip -sel b | xclip
It'd be better to have:
$ xclip -exchange