Ubuntu – How to integrate Byobu’s copy-buffer with the X clipboard

byobuclipboardgnu-screen

I want to be able to copy and paste between Byobu and Firefox without having to use a mouse. I could write the copy buffer to a file and open that file with Gedit but I was wondering if there was a more elegant way.

Best Answer

You can use XSel to insert the text into the X selection buffer:

echo "paste your buffer from byobu/screen here" | xsel