set -g default-terminal "screen-256color"
set-option -sa terminal-overrides ",*:Tc" 
#set-option -sa terminal-overrides ",xterm-kitty:RGB"
set -g history-limit 1000
set -g base-index 1
set -g pane-base-index 1
set -g mouse on
setw -g mouse on

# Keybindongs
set -g xterm-keys no
set -g prefix C-a
bind -n End send-key C-e
bind -n Home send-key C-a
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
bind r source-file ~/.tmux.conf \; display 'Reloaded tmux config'
bind - split-window -v
bind _ split-window -h
bind Tab last-window
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2

# Status bar
set -g status-bg black
set -g status-fg white
set -g status-left ' '
set -g status-right ' #{?client_prefix,*,} #S '
set -g status-style fg=colour110
set -g pane-border-style fg=colour240
set -g pane-active-border-style fg=colour39
set-window-option -g window-status-current-style fg=colour39
