2.0 is a big, long-awaited release! 🎉
The guts of wl-clipboard have been completely rewritten to fix multiple issues and enable new functionality, all while keeping the same user- and scripting-friendly interface, and the same do-what-I-mean type matching logic.
The new features since 1.0, the previous release, include:
• Multiseat support; use the new --seat
option to pass a seat name;
• A new --trim-newline
option for wl-copy
to go with the existing --no-newline
option of wl-paste
;
• Support for wlr-data-control and wp-primary-selection protocol extensions;
• Support for BSD, Mac OS X, and GNU Hurd systems in addition to Linux;
• Bash and Zsh shell completion;
• Allow continuously watching the clipboard for changes, also known as wl-paste --watch
.
There were also a lot of bug fixes and other internal improvements.
wl-clipboard 2.0 is designed to be completely Sway-native (while keeping the same level of support for other compositors). When running on Sway (or other wlroots-based compositors, or any compositor that implements the wlroots data-control protocol), wl-clipboard will use the proper interface to access the clipboard and will not attempt any focus stealing hacks it has to resort to otherwise.