Skip to content

Commit

Permalink
Hide Tmux status line by default
Browse files Browse the repository at this point in the history
It can be toggled with CTRL+B + B, and it automatically shows when
multiple windows are open
  • Loading branch information
Mis1eader-dev committed Apr 2, 2023
1 parent 31f1120 commit 04b5cc7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .config/tmux/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,12 @@ source-file "${HOME}/.local/share/tmux/plugins/tmux-themepack/powerline/block/cy

# Make bash the default shell
set-option -g default-shell /bin/bash

# Hide the status line
set -g status off
bind-key b set status

# Don't display status line if only 1 window is open
if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"
set-hook -g window-linked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"'
set-hook -g window-unlinked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"'

0 comments on commit 04b5cc7

Please sign in to comment.