Simplify and update tmux keybindings and theme

This commit is contained in:
Tony Grosinger 2021-11-04 11:35:54 -07:00
parent 44dfd0de35
commit f17b5f7091

View File

@ -1,12 +1,14 @@
set-option -g status on
set-option -g status-interval 2
set-option -g renumber-windows on
set-option -g status-justify "centre"
set-option -g history-limit 10000
set -s escape-time 0
### Copy / Paste
set-option -g status-keys vi
set-window-option -g mode-keys vi
### Reload the config with r
bind-key r source-file ~/.tmux.conf\; display-message "Reloaded config"
### Toggle Mouse Mode
bind-key m set-window-option mouse\; display-message "mouse support is now #{?mouse,on,off}"
# New panes and windows have same cwd as the one opening it
bind c new-window -c "#{pane_current_path}"
@ -25,42 +27,19 @@ bind -n C-Right if-shell "$is_vim" "send-keys C-l" "select-pane -R"
bind -n S-Right next-window
bind -n S-Left previous-window
# Set base index for windows to 1 instead of 0
set -g base-index 1
# Set base index for panes to 1 instead of 0
setw -g pane-base-index 1
set -g base-index 1 # Windows start at index 1
setw -g pane-base-index 1 # Panes start at index 1
#### COLOUR (Solarized light)
# default statusbar colors
#### Color Scheme
set-option -g status-justify "centre"
set-option -g status-bg colour238 #grey
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightyellow #base00
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg colour195 #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg brightcyan #base2
set-option -g pane-active-border-fg brightred #base1
# message text
set-option -g message-bg white #base2
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g window-status-current-style bold
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
set -g status-right '#(date "+%%Y-%m-%d %%H:%%M:%%S")'
# bell
set-window-option -g window-status-bell-style fg=white,bg=red #base2, red