85 lines
2.6 KiB
Bash
85 lines
2.6 KiB
Bash
#unbind -a
|
|
|
|
set -g default-terminal tmux
|
|
set-option -sa terminal-features ',xterm:RGB'
|
|
|
|
set-window-option -g mode-keys vi
|
|
|
|
# bind to C-b
|
|
set-option -g prefix C-b
|
|
bind-key C-b send-prefix
|
|
# commands
|
|
bind-key -T prefix : command
|
|
# sessions
|
|
# this will be set with sessionx further down
|
|
#bind-key -T prefix s list-sessions
|
|
# switch panels
|
|
# switch panes using Alt-arrow without prefix
|
|
#bind-key -T prefix C-b switch-client -T prefix_ca
|
|
bind-key -T prefix c new-window
|
|
bind-key -T prefix h previous-window
|
|
bind-key -T prefix l next-window
|
|
bind-key -T prefix 0 select-window -t :0
|
|
bind-key -T prefix 1 select-window -t :1
|
|
bind-key -T prefix 2 select-window -t :2
|
|
bind-key -T prefix 3 select-window -t :3
|
|
bind-key -T prefix 4 select-window -t :4
|
|
bind-key -T prefix 5 select-window -t :5
|
|
bind-key -T prefix 6 select-window -t :6
|
|
bind-key -T prefix 7 select-window -t :7
|
|
bind-key -T prefix 8 select-window -t :8
|
|
bind-key -T prefix 9 select-window -t :9
|
|
# vi keybindings
|
|
bind-key -T prefix '[' copy-mode
|
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
|
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
|
|
bind-key -T prefix p paste-buffer
|
|
#bind-key -T prefix S-h swap-window -t -1
|
|
#bind-key -T prefix S-l swap-window -t +1
|
|
# other
|
|
# 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
|
|
set -g status-style 'bg=colour18 fg=colour137 dim'
|
|
set -g status-left ''
|
|
set -g status-right '#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour8] %H:%M:%S '
|
|
set -g status-right-length 50
|
|
set -g status-left-length 20
|
|
|
|
setw -g window-status-current-style 'fg=colour1 bg=colour19 bold'
|
|
setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
|
|
|
|
setw -g window-status-style 'fg=colour9 bg=colour18'
|
|
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
|
|
|
|
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
|
|
|
|
# messages
|
|
set -g message-style 'fg=colour6 bg=colour16 bold'
|
|
|
|
# list of plugins
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
set -g @plugin 'omerxx/tmux-sessionx'
|
|
set -g @sessionx-bind s
|
|
#set -g @sessionx-bind-window-mode s
|
|
set -g @sessionx-window-mode 'on'
|
|
set -g @sessionx-bind-select-up 'ctrl-k'
|
|
set -g @sessionx-bind-select-down 'ctrl-j'
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|