2022-11-18 03:42:17 -05:00
|
|
|
# enable mouse support
|
|
|
|
set -g mouse on
|
2020-09-08 15:25:32 -04:00
|
|
|
|
|
|
|
####################
|
|
|
|
### KEY BINDINGS ###
|
|
|
|
####################
|
|
|
|
|
|
|
|
# remap prefix from 'C-b' to 'C-a'
|
|
|
|
unbind C-b
|
|
|
|
set-option -g prefix C-a
|
|
|
|
bind-key C-a send-prefix
|
|
|
|
|
|
|
|
# split panes using | and -
|
|
|
|
bind | split-window -h
|
|
|
|
bind - split-window -v
|
|
|
|
unbind '"'
|
|
|
|
unbind %
|
|
|
|
|
2021-11-02 15:33:32 -04:00
|
|
|
# switch panes using vi keys
|
|
|
|
bind h select-pane -L
|
|
|
|
bind l select-pane -R
|
|
|
|
bind k select-pane -U
|
|
|
|
bind j select-pane -D
|
2020-09-08 15:25:32 -04:00
|
|
|
|
|
|
|
# don't rename windows automatically
|
2021-11-02 15:33:32 -04:00
|
|
|
#set-option -g allow-rename off
|
2020-09-08 15:25:32 -04:00
|
|
|
|
|
|
|
# reload config file (change file location to your the tmux.conf you want to use)
|
|
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
|
|
|
|
# disable killing confirmation
|
|
|
|
bind-key & kill-window
|
|
|
|
unbind x
|
|
|
|
bind-key * kill-pane
|
|
|
|
|
|
|
|
######################
|
|
|
|
### DESIGN CHANGES ###
|
|
|
|
######################
|
|
|
|
|
|
|
|
# makes promt colorful
|
|
|
|
set -g default-terminal "screen-256color"
|
|
|
|
|
|
|
|
# loud or quiet?
|
|
|
|
set -g visual-activity off
|
|
|
|
set -g visual-bell off
|
|
|
|
set -g visual-silence off
|
|
|
|
setw -g monitor-activity off
|
|
|
|
set -g bell-action none
|
|
|
|
|
|
|
|
# modes
|
|
|
|
setw -g clock-mode-colour colour5
|
|
|
|
setw -g mode-style 'fg=colour1 bg=colour18 bold'
|
|
|
|
|
|
|
|
# panes
|
|
|
|
set -g pane-border-style 'fg=colour19 bg=colour0'
|
|
|
|
set -g pane-active-border-style 'bg=colour0 fg=colour9'
|
|
|
|
|
|
|
|
# statusbar
|
|
|
|
set -g status-position bottom
|
|
|
|
set -g status-justify left
|
2022-11-18 03:42:17 -05:00
|
|
|
set -g status-style 'bg=colour233 fg=colour255'
|
|
|
|
set -g status-left '#[fg=colour249,bg=colour237] tmux #[bg=colour233,fg=colour237]'
|
|
|
|
set -g status-right '#[bg=colour233,fg=colour21]#[fg=colour255,bg=colour21] %d/%m %H:%M '
|
2020-09-08 15:25:32 -04:00
|
|
|
set -g status-right-length 50
|
|
|
|
set -g status-left-length 20
|
|
|
|
|
2022-11-18 03:42:17 -05:00
|
|
|
setw -g window-status-current-format '#[fg=colour233,bg=colour21]#[bg=colour21,fg=colour184] #I#[fg=colour255]-#W #[bg=colour233,fg=colour21]'
|
2020-09-08 15:25:32 -04:00
|
|
|
|
2022-11-18 03:42:17 -05:00
|
|
|
setw -g window-status-format '#[fg=colour233,bg=colour237]#[bg=colour237,fg=colour184] #I#[fg=colour249]-#W #[bg=colour233,fg=colour237]'
|
2020-09-08 15:25:32 -04:00
|
|
|
|
|
|
|
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
|
|
|
|
|
2022-11-18 03:42:17 -05:00
|
|
|
setw -g window-status-separator ''
|
|
|
|
|
2020-09-08 15:25:32 -04:00
|
|
|
# messages
|
2021-11-02 15:33:32 -04:00
|
|
|
set -g message-style 'bg=colour27 fg=white'
|
2020-09-08 15:25:32 -04:00
|
|
|
|
2021-11-02 15:33:32 -04:00
|
|
|
# set default shell
|
2020-09-08 15:25:32 -04:00
|
|
|
set-option -g default-shell $SHELL
|