The Computer Oracle

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

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Beneath the City Looping

--

Chapters
00:00 Tmux: No Pane 'Zoom' Indication After Customising Status Bar
00:31 Accepted Answer Score 13
00:56 Answer 2 Score 16
01:19 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.