kutsan / zsh-system-clipboard

System clipboard key bindings for Zsh Line Editor with vi mode. It is similar to what `set clipboard=unnamed` does for vim.
GNU General Public License v3.0
140 stars 16 forks source link

script could check for $WAYLAND_DISPLAY #41

Closed Artturin closed 2 years ago

Artturin commented 2 years ago

https://github.com/kutsan/zsh-system-clipboard/blob/48aa32645907534ac22168399960cbe44e7334f8/zsh-system-clipboard.zsh#L44

when xwayland is used the DISPLAY var will be set at least some wayland compositors set WAYLAND_DISPLAY

doronbehar commented 2 years ago

Hello @Artturin .

The logic of choosing a clipboard method / program has been rewritten. Now, if if a user wishes to override the clipboard method to use Wayland, they should simply:

export ZSH_SYSTEM_CLIPBOARD_METHOD=wlc # or wlp

See the updated README as well.

I hope this helps, regards.