|
|
|
|
|
|
|
#########################
|
|
|
|
## FUNCTIONAL SETTINGS ##
|
|
|
|
#########################
|
|
|
|
|
|
|
|
## Add mouse support
|
|
|
|
set -g mouse on
|
|
|
|
|
|
|
|
## Set default shell to zsh
|
|
|
|
set-option -g default-shell /bin/zsh
|
|
|
|
|
|
|
|
## Set prefix to tilda
|
|
|
|
set-option -g prefix \`
|
|
|
|
bind ` send-prefix
|
|
|
|
|
|
|
|
## Reload this config fie with tilda+r
|
|
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
|
|
|
|
## Start counting windows at 1 instead of 0. Re-index windows on close so they're always successive
|
|
|
|
set -g base-index 1
|
|
|
|
set -g renumber-windows on
|
|
|
|
|
|
|
|
|
|
|
|
####################
|
|
|
|
## THEME & LAYOUT ##
|
|
|
|
####################i
|
|
|
|
|
|
|
|
## Status bar (tabbar)
|
|
|
|
set -g status-justify left
|
|
|
|
setw -g window-status-separator ''
|
|
|
|
setw -g window-status-current-style "bg=#777777 fg=#eeeeee,bold"
|
|
|
|
setw -g window-status-style "bg=#777777 fg=#333333,bold"
|
|
|
|
set -g status-bg "#333333" # Cannot figure out a way to rewrite this into a single 'style' line
|
|
|
|
set -g status-fg "#cccccc"
|
|
|
|
set -g window-status-format "#{?#{==:#{window_index},1},,} #{window_name} #{?window_end_flag,#[bg=#777777 fg=#333333] 🭨,#[bg=#777777 fg=#333333]🮥}"
|
|
|
|
set -g window-status-current-format "#{?#{==:#{window_index},1},#[fg=#777777 bg=#aaaaaa]🭨#[bg=#777777 fg=#eeeeee],} #{window_name} #{?window_end_flag,#[bg=#777777 fg=#333333] 🭨,#[bg=#777777 fg=#333333]🮥}"
|
|
|
|
|
|
|
|
## Add a top border to every pane. Helps identify active pane and looks more obvious in general
|
|
|
|
set -g pane-border-status top
|
|
|
|
set -g pane-border-format ""
|
|
|
|
|
|
|
|
## Pane borders
|
|
|
|
set -g pane-active-border-style "bg=default fg=#999999"
|
|
|
|
set -g pane-border-style "bg=default fg=#666666"
|
|
|
|
set -g pane-border-lines heavy
|
|
|
|
|
|
|
|
## Put a nice looking clock on the right, remove pane title. Show tmux instance title on the left (usually '0')
|
|
|
|
set -g status-right "#[fg=#333333 bg=#777777,bold]🭪#[fg=#333333 bg=#777777] %H:%M #[fg=#777777 bg=#999999]🭪#[fg=#333333 bg=#999999] %d-%b-%y "
|
|
|
|
set -g status-left "#[bg=#aaaaaa,fg=#333333,bold] #{session_name} #{?#{==:#{window_index},1},,#[fg=#777777 bg=#aaaaaa]🭨}"
|
|
|
|
|
|
|
|
|
|
|
|
## Uncomment if you're experiencing difficulty distinguish the active pane from the other ones. Especially if your terminal is transparent.
|
|
|
|
# set -g window-active-style 'bg=black'
|
|
|
|
|