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
|
|
|
|
2023-11-11 12:25:46 -05:00
|
|
|
# move windows
|
|
|
|
bind-key -n C-S-Left swap-window -d -t -1
|
|
|
|
bind-key -n C-S-Right swap-window -d -t +1
|
|
|
|
|
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
|
|
|
|
2023-11-11 12:25:46 -05:00
|
|
|
# renumber windows automatically
|
|
|
|
set-option -g renumber-windows on
|
|
|
|
|
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
|
2023-11-11 12:25:46 -05:00
|
|
|
set -g default-terminal "tmux-256color"
|
|
|
|
set -as terminal-overrides ",alacritty*:Tc"
|
2020-09-08 15:25:32 -04:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
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
|
2022-12-14 05:59:51 -05:00
|
|
|
|
|
|
|
# List of plugins
|
2023-11-11 12:25:46 -05:00
|
|
|
set -g @plugin 'hasundue/tmux-gruvbox-material'
|
|
|
|
set -g @gruvbox-material_theme 'dark' # or 'light'
|
|
|
|
set -g @gruvbox-material_contrast 'medium' # or 'soft' or 'hard'
|
2022-12-14 05:59:51 -05:00
|
|
|
|
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|