Skip to content

tmux

A tmux configuration that works alongside Zellij. Unified prefix key, vi-mode copy, automatic session restore, and a custom status bar.

Prefix is rebound to Ctrl+q (same as Zellij).

Terminal window
unbind C-b
set -g prefix C-q
KeyAction
Ctrl+hPrevious window
Ctrl+lNext window
KeyAction
\Split right
-Split down
h/j/k/lFocus pane
H/J/K/LResize pane
zZoom pane (fullscreen)
xClose pane
TabLast window
[Enter copy mode
?Keybindings help popup
KeyAction
vBegin selection
yCopy (via pbcopy)
HStart of line
LEnd of line
EscapeCancel
KeyAction
pPlay/pause
]Next track
PPrevious track

Managed with TPM (Tmux Plugin Manager).

PluginDescription
tmux-sensibleSensible defaults
tmux-yankSystem clipboard integration
tmux-batteryBattery level display
tmux-cpuCPU usage display
tmux-weatherWeather info
tmux-net-speedNetwork speed
tmux-resurrectSession save/restore
tmux-continuumAuto save (15 min) and auto restore
catppuccin/tmuxCatppuccin theme

tmux-resurrect and tmux-continuum handle automatic session persistence.

  • Auto save every 15 minutes
  • Auto restore on tmux startup
  • Restores vim/nvim sessions
  • Preserves pane contents
  • Restores processes: ssh, node, python, go, cargo, etc.

Catppuccin Mocha pill-style status bar. Session name on the left, info widgets on the right.

ItemDescription
Session nameGhost icon on the left
SpotifyCurrently playing track
Help iconClick for keybindings popup
WeatherTemperature and icon
PressurehPa display
Rain chanceUmbrella icon
NetworkConnection status
EarthquakeLatest seismic alert
BatteryCharge level
CPUUsage percentage
TimeHH:MM

Pill-shaped window tabs. Active tab has a blue background, inactive tabs are dimmed.

Running theme-switch updates ~/.config/tmux/themes/current.conf, which changes the tmux theme.

SettingValue
Default terminaltmux-256color
True colorRGB support
History limit50,000 lines
MouseEnabled
Base index1 (starts at 1, not 0)
Shell/opt/homebrew/bin/zsh