fix(tmux): use powerline to draw tabs
This commit is contained in:
parent
c6238648a4
commit
73be6af0c3
1 changed files with 8 additions and 5 deletions
13
.tmux.conf
13
.tmux.conf
|
|
@ -56,6 +56,8 @@ bind r source-file ~/.tmux.conf
|
|||
# - the activity marker is a ‼ if there is a bell alert, a ! if there is a silent notification, a ∘ else.
|
||||
# - the window position is a dark ⁚ for the active window, a ⁝ for the last window and a light ⁚ for others.
|
||||
# - When entering prefix, a yellow [A] is displayed and the active window tab is yellow, drawing attention to what you are doing next.
|
||||
#
|
||||
# NOTE: needs Powerline symbols (use a Nerd Font).
|
||||
|
||||
# Just like a normal window title bar.
|
||||
set -g status-position top
|
||||
|
|
@ -64,19 +66,20 @@ set -g status-position top
|
|||
set -g pane-active-border-style bg='#6f9dfe',fg='#6f9dfe'
|
||||
|
||||
# Default status style.
|
||||
set -g status-style bg='#3f6dce',fg='#d3d0cc'
|
||||
set -g status-style bg='#2f5dbe',fg='#d3d0cc'
|
||||
|
||||
# tmux-mode-indicator (mainly displays TMUX or WAIT), then prefix marker.
|
||||
set -g status-left '#{tmux_mode_indicator}#[bg=#3f6dce]#[fg=#d3d0cc]#{?client_prefix,#[bg=#cf8200]#[fg=#f8f8f8][A],[ ]}#[bg=#3f6dce]##[fg=#2f5dbe]║'
|
||||
set -g status-left '#{tmux_mode_indicator}#[bg=#3f6dce]#[fg=#d3d0cc]#{?client_prefix,#[bg=#cf8200]#[fg=#f8f8f8][A],[ ]}#{?client_prefix,#[fg=#cf8200],#[fg=#3f6dce]}#[bg=#2f5dbe]'
|
||||
|
||||
# Active window tab.
|
||||
set-window-option -g window-status-current-format "#{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]}#[fg=#ffcc00,bold]❰#[fg=#ffcc00]#I#[fg=#2f5dbe,none](∘#{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]}#[fg=#f8f8f8]#{window_panes}#{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]}#[fg=#2f5dbe])⁚ #[fg=#ffffff,bold]#W#[fg=#f8f8f8,none]#[fg=#ffcc00,bold]❱"
|
||||
set-window-option -g window-status-current-format "#{?client_prefix,#[fg=#cf8200],#[fg=#6f9dfe]}#[bg=#2f5dbe] #{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]}#[fg=#ffcc00]#I#[fg=#2f5dbe,none](∘#{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]}#[fg=#f8f8f8]#{window_panes}#{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]}#[fg=#2f5dbe])⁚ #[fg=#ffffff,bold]#W#[fg=#f8f8f8,none]#{?client_prefix,#[fg=#cf8200],#[fg=#6f9dfe]}#[bg=#2f5dbe] #[bg=#2f5dbe]"
|
||||
|
||||
# Other windows tabs.
|
||||
set-window-option -g window-status-format "#[bg=#4f7dde,noreverse,bold] #[fg=#cf8200]#I#[fg=#2f5dbe,none](#[fg=#d3d0cc]#{?window_bell_flag,#[bg=#ffcc00]#[fg=#db4939]‼,#{?window_silence_flag,#[bg=#ffcc00]#[fg=#db4939]!,#[fg=#2f5dbe]∘}}#[bg=#4f7dde]#[fg=#d3d0cc]#{window_panes}#[fg=#2f5dbe])#[fg=#d3d0cc]#{last_window}#{?window_last_flag,⁝,⁚} #[fg=#d3d0cc,bold]#W #[fg=#d3d0cc,none]"
|
||||
set-window-option -g window-status-format "#[fg=#4f7dde]#[bg=#2f5dbe] #[bg=#4f7dde,noreverse,bold]#[fg=#cf8200]#I#[fg=#2f5dbe,none](#[fg=#d3d0cc]#{?window_bell_flag,#[bg=#ffcc00]#[fg=#db4939]‼,#{?window_silence_flag,#[bg=#ffcc00]#[fg=#db4939]!,#[fg=#2f5dbe]∘}}#[bg=#4f7dde]#[fg=#d3d0cc]#{window_panes}#[fg=#2f5dbe])#[fg=#d3d0cc]#{last_window}#{?window_last_flag,⁝,⁚} #[fg=#d3d0cc,bold]#W#[fg=#d3d0cc,none]#[fg=#4f7dde]#[bg=#2f5dbe] #[bg=#2f5dbe]"
|
||||
|
||||
# Tabs separator.
|
||||
set-window-option -g window-status-separator "#[fg=#2f5dbe]║" #⟭⟬"
|
||||
# set-window-option -g window-status-separator "#[fg=#2f5dbe]║" #⟭⟬"
|
||||
set-window-option -g window-status-separator "" #⟭⟬"
|
||||
|
||||
# No reverse on notifications.
|
||||
set-window-option -g window-status-activity-style none
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue