2024-03-14 08:40:37 +01:00
|
|
|
######################
|
|
|
|
### PLUGINS ###
|
|
|
|
######################
|
|
|
|
#set -g @plugin 'tmux-plugins/tmux-yank'
|
|
|
|
|
2024-03-08 14:02:47 +01:00
|
|
|
# set new panes to open in current directory
|
|
|
|
bind c new-window -c "#{pane_current_path}"
|
|
|
|
|
|
|
|
# split panes using | and -
|
|
|
|
bind | split-window -h -c "#{pane_current_path}"
|
|
|
|
bind - split-window -v -c "#{pane_current_path}"
|
|
|
|
unbind '"'
|
|
|
|
unbind %
|
|
|
|
|
|
|
|
# switch panes using Alt-arrow without prefix
|
|
|
|
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
|
|
|
|
|
|
|
|
# don't rename windows automatically
|
|
|
|
set-option -g allow-rename off
|
|
|
|
|
2024-03-08 21:28:12 +01:00
|
|
|
# allow the mouse use in vim
|
|
|
|
set -g mouse on
|
|
|
|
|
2024-03-08 14:02:47 +01:00
|
|
|
######################
|
|
|
|
### DESIGN CHANGES ###
|
|
|
|
######################
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# panes
|
|
|
|
set -g pane-border-style 'fg=colour1'
|
|
|
|
set -g pane-active-border-style 'fg=colour3'
|
|
|
|
|
|
|
|
# statusbar
|
|
|
|
set -g status-position bottom
|
2024-03-08 14:30:57 +01:00
|
|
|
set -g status-justify centre
|
|
|
|
set -g status-style 'fg=colour207 #{?client_prefix,bg=colour240,#bg=colour234}'
|
|
|
|
set -g status-left " #[fg=colour207]#H #[fg=colour127,dim]#(uname -r)#[default]"
|
|
|
|
set -g status-right '#[fg=colour207]%Y-%m-%d %H:%M '
|
2024-03-08 14:02:47 +01:00
|
|
|
set -g status-right-length 50
|
2024-03-08 14:30:57 +01:00
|
|
|
set -g status-left-length 100
|
2024-03-08 14:02:47 +01:00
|
|
|
|
2024-03-09 09:51:54 +01:00
|
|
|
setw -g window-status-current-style 'fg=colour0 bg=colour127,dim'
|
2024-03-08 14:02:47 +01:00
|
|
|
setw -g window-status-current-format ' #I #W #F '
|
|
|
|
|
2024-03-08 14:30:57 +01:00
|
|
|
setw -g window-status-style 'fg=colour207 dim'
|
|
|
|
setw -g window-status-format ' #I #[fg=colour7]#W #[fg=colour207]#F '
|
2024-03-08 14:02:47 +01:00
|
|
|
|
2024-03-08 14:30:57 +01:00
|
|
|
setw -g window-status-bell-style 'fg=colour207 bg=colour1 bold'
|
2024-03-08 14:02:47 +01:00
|
|
|
|
|
|
|
# messages
|
2024-03-08 14:30:57 +01:00
|
|
|
set -g message-style 'fg=colour207 bg=colour0 bold'
|
2024-03-14 08:40:37 +01:00
|
|
|
|
|
|
|
setw -g mode-keys vi
|
|
|
|
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -sel clip -i'
|
|
|
|
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -sel clip -i'
|
|
|
|
|
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|