DEV Community

Alex Gonzalez Lacasa
Alex Gonzalez Lacasa

Posted on

wayland & clipboard

The clipboard in wayland works differently than in X11.
For some programs like vim to be able to access the system clipboard you must have installed wl-clipboard

sudo apt install wl-clipboard
Enter fullscreen mode Exit fullscreen mode

To be able to copy stdout you need wl-copy, xclip or xsel doesn't work anymore

sudo apt install wl-copy
Enter fullscreen mode Exit fullscreen mode

example

echo "Hello world" | wl-copy
Enter fullscreen mode Exit fullscreen mode

Top comments (0)