Skip to content

Instantly share code, notes, and snippets.

@bradleybluebean
Last active September 18, 2017 00:10
Show Gist options
  • Save bradleybluebean/2ee0beee490da6c76271 to your computer and use it in GitHub Desktop.
Save bradleybluebean/2ee0beee490da6c76271 to your computer and use it in GitHub Desktop.
Share byobu (tmux version) paste buffer with X clipboard
# Add the following line to your byobu keybindings.tmux file (~/.byobu/keybindings.tmux).
# This will set the key combo ctrl-a, b (control plus 'a', then 'b') to copy the current byobu/tmux paste buffer to the X/Gnome clipboard.
# This example uses parcellite to manage the X/Gnome clipboard so that, obviously, must be installed too.
# parcellite might be able to be replaced with another tool like xsel but that hasn't been tested yet.
bind b run-shell "tmux show-buffer | parcellite > /dev/null >&1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment