From: Stefan Huber Date: Fri, 7 May 2021 06:41:29 +0000 (+0200) Subject: tmux: Update config X-Git-Url: https://git.sthu.org/?p=shutils.git;a=commitdiff_plain;h=93df33f1404a71ec713a6c05a4f66ce61e946100 tmux: Update config --- diff --git a/dotfiles/tmux/.tmux.conf b/dotfiles/tmux/.tmux.conf index 4d5fa5e..c4ab6ac 100644 --- a/dotfiles/tmux/.tmux.conf +++ b/dotfiles/tmux/.tmux.conf @@ -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