James's Ramblings

Byobu

Created: June 02, 2020

Disable Byobu function key shortcuts

SHIFT + F12

Set ALT + A as the escape sequence

In ~/.byobu/keybindings.tmux:

set -g prefix M-a
unbind-key -n C-a

Mouse Mode

In ~/.byobu/profile.tmux:

set -g mouse on
set -g mouse-utf-8 on
  • The keyboard shortcut to toggle mouse mode is ALT + F12.

Copy to the System Clipboard

  1. Maximise a pane with SHIFT + F11.
  2. SHIFT + HIGHLIGHT.
  3. CTRL + SHIFT + C, or right click, to copy.

Copy and paste from the Byobu buffer

  1. Press ALT + {PGUP|PGDOWN} to enter copy mode.
  2. Press CTRL+SPACE to start highlighting text.
  3. ALT + W copies the text to Byobu’s buffer.
  4. ALT + INSERT paste from Byobu’s buffer.

Panes

Description Command
Split horizontally SHIFT + F2
Split vertically CTRL + F2
Move current pane left or right CTRL + SHIFT + ARROW_KEY
Resize current pane SHIFT + ALT + ARROW_KEY

Windows

Description Command
New window F2
Previous window F3
Next window F4
Rename the current window F8

Sessions

Description Command
Detach from the session and logout F6
Detach from the session but do not logout SHIFT + F6
Start a new session with an optional NAME byobu new [-s NAME]
List sessions byobu ls
Attach to the last used session byobu a
Attach to the session named NAME byobu a -t NAME
Rename session named NAME to NEW_NAME byobu rename -t NAME NEW_NAME
Rename current session F12 + $
Kill session named NAME byobu kill-ses -t NAME
Kill all sessions except the current byobu kill-session -a
Kill all sessions except the session named NAME. byobu kill-session -a -t NAME

Change What the Byobu Status Line Displays

  • Edit ~/.byobu/status.
  • The offending lines are tmux_left= and tmux_right=.
  • Mine looks like:
    tmux_left="session"
    tmux_right=""
    
  • Restart Byobu for the full changes to take affect.

Colours

  • Edit ~./byobu/color.tmux.
  • Mine looks like:
    BYOBU_DARK="\#333333"
    BYOBU_LIGHT="\#EEEEEE"
    BYOBU_ACCENT="\#75507B"
    BYOBU_HIGHLIGHT="\#DD4814"
    MONOCHROME=