51 lines
1.5 KiB
Bash
51 lines
1.5 KiB
Bash
# Reload tmux config
|
|
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
|
|
|
set -sg escape-time 0
|
|
|
|
set -g default-terminal "screen-256color"
|
|
|
|
# disable automatic window renaming
|
|
set-window-option -g automatic-rename on
|
|
set-window-option -g allow-rename off
|
|
|
|
# window status
|
|
setw -g window-status-format "#[bg=colour241,fg=colour233] #I #W "
|
|
setw -g window-status-current-format "#[bg=colour245,fg=colour233] #I #W "
|
|
|
|
# The statusbar
|
|
set -g status-interval 2
|
|
set -g status-position bottom
|
|
set -g status-bg colour234
|
|
set -g status-fg colour137
|
|
set -g status-attr dim
|
|
set -g status-left '#[fg=colour245] #(whoami)@#H > #S '
|
|
set -g status-right '#[fg=colour233,bg=colour241,bold] %m/%d #[fg=colour233,bg=colour245,bold] %I:%M '
|
|
set -g status-right-length 50
|
|
set -g status-left-length 30
|
|
set -g clock-mode-style 12
|
|
|
|
# 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
|
|
|
|
# Use Alt-arrow keys without prefix key to switch panes
|
|
bind -n M-Left select-pane -L
|
|
bind -n M-Right select-pane -R
|
|
bind -n M-Up select-pane -U
|
|
bind -n M-Down select-pane -D
|
|
|
|
# Window splitting
|
|
bind-key c new-window -c "#{pane_current_path}"
|
|
bind-key v split-window -h -c "#{pane_current_path}"
|
|
bind-key h split-window -v -c "#{pane_current_path}"
|
|
bind-key + select-layout even-vertical
|
|
bind-key = select-layout even-horizontal
|
|
|
|
bind-key -n C-S-Down resize-pane -D 5
|
|
bind-key -n C-S-Up resize-pane -U 5
|
|
bind-key -n C-S-Left resize-pane -L 5
|
|
bind-key -n C-S-Right resize-pane -R 5
|
|
|