2023-02-11 14:11:00 +01:00
|
|
|
unbind C-b
|
|
|
|
set -g prefix C-a
|
|
|
|
bind C-a send-prefix
|
|
|
|
|
|
|
|
set -g base-index 1
|
2024-04-26 14:31:04 +02:00
|
|
|
set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m' # undercurl support
|
2023-11-17 20:15:04 +01:00
|
|
|
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
|
|
|
|
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
|
2023-02-11 14:11:00 +01:00
|
|
|
|
|
|
|
# Basic functions
|
|
|
|
bind -n M-n new-window
|
|
|
|
bind -n M-- split-window -v
|
|
|
|
bind -n M-| split-window -h
|
|
|
|
bind -n M-R command-prompt -I "" "rename-window '%%'"
|
|
|
|
bind -n M-X confirm-before "kill-window"
|
|
|
|
bind -n M-x confirm-before "kill-pane"
|
|
|
|
bind -n M-/ copy-mode
|
|
|
|
|
|
|
|
# ALT interface for switching windows
|
|
|
|
bind -n M-Tab last-window
|
|
|
|
bind -n M-1 select-window -t 1
|
|
|
|
bind -n M-2 select-window -t 2
|
|
|
|
bind -n M-3 select-window -t 3
|
|
|
|
bind -n M-4 select-window -t 4
|
|
|
|
bind -n M-5 select-window -t 5
|
|
|
|
bind -n M-6 select-window -t 6
|
|
|
|
|
|
|
|
# enable vi mode
|
|
|
|
setw -g mode-keys vi
|
|
|
|
|
|
|
|
# don't allow tmux to rename the window based on commands running
|
|
|
|
set-option -wg automatic-rename off
|
|
|
|
|
|
|
|
# upgrade $TERM
|
2023-11-17 20:15:04 +01:00
|
|
|
set -g default-terminal "tmux-256color"
|
2023-04-30 09:58:35 +02:00
|
|
|
set-option -sa terminal-features ',{{ .term }}:RGB'
|
2023-02-11 14:11:00 +01:00
|
|
|
|
2023-03-07 16:01:47 +01:00
|
|
|
# Enable mouse mode (tmux 2.1 and above)
|
|
|
|
set -g mouse on
|
|
|
|
|
2023-02-14 12:13:44 +01:00
|
|
|
set -g default-command {{ .shell }}
|
|
|
|
set -g default-shell {{ .shell }}
|
2023-02-11 14:11:00 +01:00
|
|
|
|
|
|
|
set-option -g status-position top
|
2024-01-13 22:33:54 +01:00
|
|
|
set -g @catppuccin_window_left_separator ""
|
|
|
|
set -g @catppuccin_window_right_separator " "
|
|
|
|
set -g @catppuccin_window_middle_separator " █"
|
|
|
|
set -g @catppuccin_window_number_position "right"
|
|
|
|
|
|
|
|
set -g @catppuccin_window_default_fill "number"
|
|
|
|
set -g @catppuccin_window_default_text "#W"
|
|
|
|
|
|
|
|
set -g @catppuccin_window_current_fill "number"
|
|
|
|
set -g @catppuccin_window_current_text "#W"
|
|
|
|
|
2024-02-16 16:58:38 +01:00
|
|
|
set -g @catppuccin_status_modules_right "user host date_time session"
|
2024-01-13 22:33:54 +01:00
|
|
|
set -g @catppuccin_status_left_separator " "
|
|
|
|
set -g @catppuccin_status_right_separator ""
|
|
|
|
set -g @catppuccin_status_right_separator_inverse "no"
|
|
|
|
set -g @catppuccin_status_fill "icon"
|
|
|
|
set -g @catppuccin_status_connect_separator "no"
|
|
|
|
|
2024-03-26 09:00:57 +01:00
|
|
|
# Gruvbox
|
|
|
|
# set -g @catppuccin_host_color "#458588"
|
|
|
|
# set -g @catppuccin_user_color "#d79921"
|
|
|
|
# set -g @catppuccin_date_time_color "#689d6a"
|
|
|
|
# set -g @catppuccin_session_color "#d65d0e"
|
|
|
|
|
|
|
|
# Nord
|
|
|
|
set -g @catppuccin_host_color "#81A1C1"
|
|
|
|
set -g @catppuccin_user_color "#81A1C1"
|
|
|
|
set -g @catppuccin_date_time_color "#81A1C1"
|
|
|
|
set -g @catppuccin_session_color "#81A1C1"
|
|
|
|
set -g @catppuccin_window_default_color "#4C566A"
|
|
|
|
set -g @catppuccin_window_current_color "#5E81AC"
|
|
|
|
set -g @catppuccin_status_background "#434C5E"
|
|
|
|
|
2024-02-16 14:20:24 +01:00
|
|
|
set -g @catppuccin_host_text "#{host_short}"
|
2024-02-12 21:11:45 +01:00
|
|
|
set -g @catppuccin_host_icon " "
|
2024-03-22 09:31:47 +01:00
|
|
|
set -g @catppuccin_user_icon " "
|
|
|
|
set -g @catppuccin_date_time_text "%H:%M"
|
2024-02-12 15:12:50 +01:00
|
|
|
set -g @catppuccin_date_time_icon " "
|
2024-02-12 21:11:45 +01:00
|
|
|
set -g @catppuccin_session_icon " "
|
2023-02-11 14:11:00 +01:00
|
|
|
|
|
|
|
# List of plugins
|
2024-02-12 15:10:21 +01:00
|
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
2023-02-11 14:11:00 +01:00
|
|
|
set -g @plugin 'tmux-plugins/tmux-pain-control'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-logging'
|
2024-01-22 14:41:36 +01:00
|
|
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
2024-01-13 22:33:54 +01:00
|
|
|
set -g @plugin 'catppuccin/tmux'
|
2023-02-11 14:11:00 +01:00
|
|
|
|
|
|
|
# Initialize TMUX plugin manager
|
|
|
|
run -b '~/.tmux/plugins/tpm/tpm'
|