# set -g default-terminal screen-256color
# set -g default-terminal tmux-256color
set -g default-terminal xterm-256color
set -ga terminal-overrides ",*256col*:Tc"

set -g mouse on
bind r source-file ~/.tmux.conf \; display ​"Configuration Reloaded!"
set -s escape-time 0
setw -g aggressive-resize on

set -g display-time 2000
set-option -g history-limit 5000
setw -g automatic-rename on

set -g renumber-windows on
setw -g monitor-activity on
set -g visual-activity on

set-option -g status-position top

# # --> Catppuccin (Macchiato)
thm_bg="#24273a"
thm_fg="#cad3f5"
thm_cyan="#91d7e3"
thm_black="#1e2030"
thm_gray="#363a4f"
thm_magenta="#c6a0f6"
thm_pink="#f5bde6"
thm_red="#ed8796"
thm_green="#a6da95"
thm_yellow="#eed49f"
thm_blue="#8aadf4"
thm_orange="#f5a97f"
thm_black4="#5b6078"
thm_highlight="#1e1e2e"

set -g  status-left-length 40 
set -g status-interval 30
set -g status-left "#[fg=$thm_green]Session #S #[fg=$thm_black4]▶ #[fg=$thm_magenta]Pane #I #[fg=$thm_black4]▶ #[fg=$thm_yellow]Window #P #[fg=$thm_black4]| #[fg=$thm_red]"
set -g status-bg $thm_gray
set -g status-fg $thm_orange

# Set bg color of active window
set -g window-active-style bg=$thm_highlight

set-window-option -g window-status-current-style bg=$thm_black4
# set -g status-right "#(battery -t) #[fg=cyan] %d %b %R "
set -g message-style fg=$thm_black4,bold,bg=$thm_green
set -g pane-border-style fg=$thm_$thm_black4,bg=$thm_black
set -g pane-active-border-style fg=$thm_yellow,bg=$thm_black

################################################################################
#
# Copy mode (vi)
#
#  Ctrl + [ to enter tmux vi copy mode
# Move around with vim navigation keys
# Begin highlight with Space
# Copy with Enter
# Paste with Ctrl + ]
################################################################################
set-window-option -g mode-keys vi