I start my coding workspaces in tmux sessions which persist when I log out. If I switch from a wayland session to an x11 session, then my copy and paste functionality in those neovim sessions are broken because it's still trying to use wl-copy
. To be more precise:
- Start a wayland session.
- Open a terminal and start a tmux session.
- Open neovim and do some work.
- Log out of wayland, log into an X11 environment
- Open a terminal and reconnect to the tmux session
"+y
broken. clipboard: error invoking wl-copy: Failed to connect to a Wayland server...
Restarting neovim isn't sufficient. I have to restart the entire tmux session or switch back to wayland. Is there some short cut I can take here?
Thats for sure what's happening. The remaining error message makes that clear but I couldn't copy the full message