1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- ##
- ## O P T I O N S
- ##
- set-option -g default-shell /bin/zsh
-
- # Vim keys
- set-window-option -g mode-keys vi
-
- # Top bar
- set -g status-position top
-
- # Start numbering at 1
- set -g base-index 1
-
- # Allows for faster key repetition
- set -s escape-time 0
-
- # Rather than constraining window size to the maximum size of any client
- # connected to the *session*, constrain window size to the maximum size of any
- # client connected to *that window*. Much more reasonable.
- setw -g aggressive-resize on
-
- # Activity monitoring
- setw -g monitor-activity on
- set -g visual-activity on
-
- # auto window rename
- set-window-option -g automatic-rename
-
- ##
- ## B I N D I N G S
- ##
- set-option -g prefix C-b
- # set window split
- bind-key v split-window -h
- bind-key h split-window
-
- # Vi copypaste mode
- bind-key -T copy-mode-vi 'v' send -X begin-selection
- bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
-
- # Use Alt-vim keys without prefix key to switch panes
- bind -n M-h select-pane -L
- bind -n M-j select-pane -D
- bind -n M-k select-pane -U
- bind -n M-l select-pane -R
-
- bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"
-
- # set to main-horizontal, 60% height for main pane
- bind m set-window-option main-pane-height 60\; select-layout main-horizontal
-
- ##
- ## C O L O R S
- ##
- set -g default-terminal "xterm-256color"
-
- set-option -g status-bg colour0
- set-option -g status-fg colour255
- set-option -g status-attr default
-
- # default window title colors
- set-window-option -g window-status-fg colour244 #base0
- set-window-option -g window-status-bg default
-
- # active window title colors
- set-window-option -g window-status-current-fg colour9
- 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 colour235 #base02
- set-option -g pane-active-border-fg colour240 #base01
-
- # message text
- set-option -g message-bg colour233
- set-option -g message-fg colour10
-
- # pane number display
- set-option -g display-panes-active-colour colour33 #blue
- set-option -g display-panes-colour colour166 #orange
- # clock
- set-window-option -g clock-mode-colour green #green
|