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: window-status-current-style highlights the active tmux window

Tmux
~/tips/tip-tmux-window-status-current-style

setw -g window-status-current-style 'bg=yellow,fg=black,bold'

Makes the current window stand out in the status bar.

With six windows in the status bar, the little asterisk after the active one is easy to miss. I’d give it a colour instead.

setw -g window-status-current-style 'bg=yellow,fg=black,bold'

That paints the name of the current window in the status bar black on yellow. Everything else keeps the normal status bar colours. A style can have fg=, bg=, and attributes like bold, underscore or reverse, separated by commas.

There are a couple of siblings worth knowing:

setw -g window-status-style 'fg=colour245'
setw -g window-status-activity-style 'fg=red'

The first one dims all other windows, so the current one stands out even more. The second one colours windows where monitor-activity spotted output.

If nothing changes after a reload, check whether your config also sets window-status-current-format with its own #[...] style markers inside. Those markers win over the option. Remove them from the format, or put the colours there instead.

Further reading: tmux manual page (OpenBSD)

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