tmux: Update config
authorStefan Huber <shuber@sthu.org>
Fri, 7 May 2021 06:41:29 +0000 (08:41 +0200)
committerStefan Huber <shuber@sthu.org>
Fri, 7 May 2021 06:41:29 +0000 (08:41 +0200)
dotfiles/tmux/.tmux.conf

index 4d5fa5e4c7630501bd0d8f044216b46ae6e40669..c4ab6ac1c6a0390b765b7203c0baed9adc97a65a 100644 (file)
@@ -1,7 +1,7 @@
 # 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
 
@@ -14,6 +14,15 @@ bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection c
 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]"
@@ -25,8 +34,11 @@ 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
@@ -40,10 +52,6 @@ set-window-option -g window-status-activity-style bg=colour237,fg=colour248 # bg
 # 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