astrand/xclip

Exchange PRIMARY and SECONDARY using target side-effects

hackerb9 opened this issue · 0 comments

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