75 lines
2.5 KiB
Bash
75 lines
2.5 KiB
Bash
# tmux.conf
|
|
# ~ M. Thomas
|
|
|
|
# set default terminal
|
|
set -g default-terminal "tmux-256color"
|
|
# enable true color terminal
|
|
set -ga terminal-overrides ",*256col*:Tc,alacritty:Tc"
|
|
|
|
# new panes (open with current path)
|
|
bind-key -n M-v split-window -h -c "#{pane_current_path}"
|
|
bind-key -n M-s split-window -v -c "#{pane_current_path}"
|
|
|
|
# pane selection
|
|
bind-key -n M-h select-pane -L
|
|
bind-key -n M-j select-pane -D
|
|
bind-key -n M-k select-pane -U
|
|
bind-key -n M-l select-pane -R
|
|
|
|
# pane / window modifications
|
|
bind-key -n M-z resize-pane -Z
|
|
# use `set automatic-rename on` to reset
|
|
bind-key -n M-, command-prompt "rename-window '%%'"
|
|
|
|
# new windows
|
|
bind-key -n M-c new-window -c "#{pane_current_path}"
|
|
|
|
# navigate windows
|
|
bind-key -n M-1 select-window -t 1
|
|
bind-key -n M-2 select-window -t 2
|
|
bind-key -n M-3 select-window -t 3
|
|
bind-key -n M-4 select-window -t 4
|
|
bind-key -n M-5 select-window -t 5
|
|
bind-key -n M-6 select-window -t 6
|
|
bind-key -n M-7 select-window -t 7
|
|
bind-key -n M-8 select-window -t 8
|
|
bind-key -n M-9 select-window -t 9
|
|
|
|
# swap panes
|
|
bind-key -n 'M-{' swap-pane -D
|
|
bind-key -n 'M-}' swap-pane -U
|
|
|
|
|
|
# make escape bindings of programs work in tmux
|
|
set -s escape-time 5
|
|
|
|
# enable mouse
|
|
set-option -g mouse on
|
|
|
|
# start pane index at 1
|
|
set -g base-index 1
|
|
setw -g pane-base-index 1
|
|
|
|
# styling
|
|
set -g status-position top
|
|
|
|
# generated, using https://github.com/edkolev/tmuxline.vim
|
|
set -g status-justify "left"
|
|
set -g status "on"
|
|
set -g status-left-style "none"
|
|
set -g message-command-style "fg=colour7,bg=colour14"
|
|
set -g status-right-style "none"
|
|
set -g pane-active-border-style "fg=#859900"
|
|
set -g status-style "none,bg=colour7"
|
|
set -g message-style "fg=colour7,bg=colour14"
|
|
set -g pane-border-style "fg=colour11"
|
|
set -g status-right-length "100"
|
|
set -g status-left-length "100"
|
|
setw -g window-status-activity-style "none"
|
|
setw -g window-status-separator ""
|
|
setw -g window-status-style "none,fg=colour14,bg=colour7"
|
|
set -g status-left "#[fg=colour7,bg=colour11,bold] #S #[fg=colour11,bg=colour7,nobold,nounderscore,noitalics]"
|
|
set -g status-right "#[fg=colour14,bg=colour7,nobold,nounderscore,noitalics]#[fg=colour7,bg=colour14] %Y-%m-%d %I:%M %p #[fg=colour11,bg=colour14,nobold,nounderscore,noitalics]#[fg=colour7,bg=colour11] #h "
|
|
setw -g window-status-format "#[fg=colour14,bg=colour7] #I #[fg=colour14,bg=colour7] #W "
|
|
setw -g window-status-current-format "#[fg=colour7,bg=colour14,nobold,nounderscore,noitalics]#[fg=colour7,bg=colour14] #I #[fg=colour7,bg=colour14] #W #[fg=colour14,bg=colour7,nobold,nounderscore,noitalics]"
|