# Prefer xterm-256color as vim (neovim) within mutt switches to monochrome with
# screen-256color.
set -g default-terminal "xterm-256color"
-#set -g mouse on
+set -g mouse on
set-window-option -g xterm-keys on
bind-key m set-option -g mouse on \; display 'Mouse: ON'
bind-key M set-option -g mouse off \; display 'Mouse: OFF'
+# Let split et alii use the pane's current path as current path of the new pane
+bind '"' split-window -c "#{pane_current_path}"
+bind % split-window -h -c "#{pane_current_path}"
+bind c new-window -c "#{pane_current_path}"
+
+# Pass home and end keys
+bind-key -n Home send Escape "OH"
+bind-key -n End send Escape "OF"
+
# Pass titles to terminal
set-option -g set-titles on
set-option -g set-titles-string "[#S : #W : #T]"
## COLORSCHEME: gruvbox dark
set-option -g status "on"
-set -g window-active-style bg=colour234
-set -g window-style bg=black
+# pane style
+set-option -g window-active-style bg=colour234
+set-option -g pane-active-border-style fg=colour250 #fg2
+set-option -g window-style bg=colour235
+set-option -g pane-border-style fg=colour237 #bg1
# default statusbar color
set-option -g status-style bg=colour237,fg=colour223 # bg=bg1, fg=fg1
# active window title colors
set-window-option -g window-status-current-style bg=red,fg=colour237 # fg=bg1
-# pane border
-set-option -g pane-active-border-style fg=colour250 #fg2
-set-option -g pane-border-style fg=colour237 #bg1
-
# message infos
set-option -g message-style bg=colour239,fg=colour223 # bg=bg2, fg=fg1