The Computer Oracle

Tmux: no pane 'zoom' indication after customising status bar

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5 Looping

--

Chapters
00:00 Tmux: No Pane 'Zoom' Indication After Customising Status Bar
00:31 Answer 1 Score 15
01:00 Accepted Answer Score 12
01:28 Thank you

--

Full question
https://superuser.com/questions/830450/t...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#tmux

#avk47



ANSWER 1

Score 16


From tmux 2.0 onward, you can use the #{?window_zoomed_flag,ZOOMTEXT,NON-ZOOM TEXT} replacement conditional in your window-status-current-format string.

For example, I use:

#{?window_zoomed_flag,#[fg=red](,}#W#{?window_zoomed_flag,#[fg=red]),}

To surround the window name with red parenthesis when it is zoomed.




ACCEPTED ANSWER

Score 13


You want to use the window flags option in your customization, which is #F.

Note that this is the same flag for indicating that a window is active, etc. I don't know of a way to show the zoom indicator but not show the other general window status indicators.

You can check out the Formats section in the tmux man page for the full list of options.