73 lines
1.7 KiB
Bash

# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
#############
### THEME ###
#############
set -g default-terminal "tmux-256color"
run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux
set -g @catppuccin_flavor "mocha" # latte, frappe, macchiato, or mocha
set -g @catppuccin_window_status_style "rounded" # basic, rounded, slanted, custom, or none
set -g status-right-length 100
set -g status-right "#{E:@catppuccin_status_application}#{E:@catppuccin_status_session}"
set -g status-left ""
get -g @catppuccin_pane_border_status "off"
################
### BINDINGS ###
################
# r - RELOAD
bind r source-file ~/.config/tmux/tmux.conf
# 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
unbind M-Left
unbind C-Left
unbind M-Right
unbind C-Right
unbind M-Up
unbind C-Up
unbind M-Down
unbind C-Down
bind M-Left resize-pane -L 1 \; switch-client -T prefix
bind C-Left resize-pane -L 5 \; switch-client -T prefix
bind M-Right resize-pane -R 1 \; switch-client -T prefix
bind C-Right resize-pane -R 5 \; switch-client -T prefix
bind M-Up resize-pane -U 1 \; switch-client -T prefix
bind C-Up resize-pane -U 5 \; switch-client -T prefix
bind M-Down resize-pane -D 1 \; switch-client -T prefix
bind C-Down resize-pane -D 5 \; switch-client -T prefix
################
### SETTINGS ###
################
# Enable mouse
set -g mouse on
# Don't rename windows automatically
set-option -g allow-rename off
# Don't do anything when a 'bell' rings
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