Can you toggle the visibility of the status bar in tmux?

I know you can turn the status bar on and off with

set -g status off

But I would like to bind a key to toggle the visibility of this status bar. Is there some way to toggle this setting?


Solution 1:

Boolean options can be toggled when no value is given:

set -g status

Solution 2:

If you want to bind a key, add this to you .tmuxrc:

bind-key -n C-F3 set-option -g status #Ctrl+F3 Combo