brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Ctrl-b Space cycles through the tmux pane layouts

Tmux
~/tips/tip-tmux-next-layout

Ctrl-b Space

Rearranges the panes of the current window into the next of tmux's five built-in layouts.

Panes pushed together by hand rarely look good. Press one key and tmux rearranges them.

Ctrl-b Space

Each press moves to the next layout: even-horizontal, even-vertical, main-horizontal, main-vertical and tiled, then it starts over. Keep pressing until the panes sit the way you want them.

The layout only changes how the panes are placed. Programs keep running and nothing is closed or restarted.

If you want a specific layout directly, tmux select-layout tiled picks one by name. The space bar version is for the case where you do not know yet what you want and prefer to look at the options.

Try it without risk: start a throwaway session with tmux new -s scratch, use the shortcut or command above there, look at what changes, and close it again with tmux kill-session -t scratch. Nothing else on your machine is touched.

Further reading: tmux manual page (OpenBSD, official), tmux wiki: Getting Started (official)

More Tmux tips tmux new -d -s report -x 200 -y 50 'top' tmux wait-for build-done set -g allow-passthrough on tmux kill-server Ctrl-b [ All Tmux tips (125) All topics

Link