How do I integrate Byobu's copy-buffer with the X clipboard?

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.


Solution 1:

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

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

Use -b/--clipboard to copy to CLIPBOARD selection instead of PRIMARY.