Skip to content

Commit

Permalink
tmux: custom theme
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusvellone committed Jan 4, 2019
1 parent b4669b6 commit 6eab61a
Showing 1 changed file with 63 additions and 11 deletions.
74 changes: 63 additions & 11 deletions tmux/.tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,81 @@ set -g @plugin 'tmux-plugins/tmux-resurrect'
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix

# Enable mouse
setw -g mouse on

# Allow Control+Arrow Keys to move whole word
set-window-option xterm-keys on
set-window-option -g xterm-keys on

# Start window numbering at 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on

setw -g monitor-activity on
set -g visual-activity on

# Start window and pane numbering at 1
set -g base-index 1
setw -g pane-base-index 1

setw -g mode-keys vi

bind r source-file ~/.tmux.conf
bind r \
source-file ~/.tmux.conf\;\
display "Config reloaded"

bind P \
setw synchronize-panes\;\
display "Synchronized panes are #{?pane_synchronized,on,off}"

# No delay for escape key press
set -sg escape-time 0

# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Control-a go to last window
bind-key C-a last-window

bind c new-window -c '#{pane_current_path}'
# Rebinding the pane splitting bindings
unbind % # Remove default binding since we’re replacing
bind | split-window -h -c '#{pane_current_path}'
bind _ split-window -v -c '#{pane_current_path}'

# CTRL + vim nav = change pane
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D

# pane resizing
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# Set status bar
set -g status-bg 'colour235'
set -g message-command-fg 'colour222'
set -g status-justify 'centre'
set -g status-left-length '100'
set -g status 'on'
set -g pane-active-border-fg 'colour154'
set -g message-bg 'colour238'
set -g status-right-length '100'
set -g status-right-attr 'none'
set -g message-fg 'colour222'
set -g message-command-bg 'colour238'
set -g status-attr 'none'
set -g pane-border-fg 'colour238'
set -g status-left-attr 'none'
setw -g window-status-fg 'colour153'
setw -g window-status-attr 'none'
setw -g window-status-activity-bg 'colour235'
setw -g window-status-activity-attr 'bold'
setw -g window-status-activity-fg 'colour154'
setw -g window-status-separator ''
setw -g window-status-bg 'colour235'
set -g status-left '#[fg=colour232,bg=colour154] #S #[fg=colour154,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #W #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour121,bg=colour235] #(whoami) #[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]'
set -g status-right '#[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour121,bg=colour235] %R  %a  %d %b #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #H #[fg=colour154,bg=colour238,nobold,nounderscore,noitalics]'
setw -g window-status-format '#[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]#[default] #I  #W #[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]'
setw -g window-status-current-format '#[fg=colour235,bg=colour243,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour243] #I  #W #[fg=colour243,bg=colour235,nobold,nounderscore,noitalics]'

0 comments on commit 6eab61a

Please sign in to comment.