X-Git-Url: http://git.sthu.org/?a=blobdiff_plain;f=dotfiles%2Ftmux%2F.tmux.conf;h=69be6d402b252723113169d42f1174f05883cfd5;hb=e9ca613da889135e668f419e7b8f3b0aaa265dfb;hp=4d5fa5e4c7630501bd0d8f044216b46ae6e40669;hpb=e6c24ad7390da0b2a1f91493b6870552f00f52f6;p=shutils.git diff --git a/dotfiles/tmux/.tmux.conf b/dotfiles/tmux/.tmux.conf index 4d5fa5e..69be6d4 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]" @@ -22,12 +31,9 @@ set-option -g set-titles-string "[#S : #W : #T]" # {{{{ Gruvbox color scheme # https://github.com/egel/tmux-gruvbox/blob/master/tmux-gruvbox-dark.conf -## COLORSCHEME: gruvbox dark +## COLORSCHEME: gruvbox dark (medium) set-option -g status "on" -set -g window-active-style bg=colour234 -set -g window-style bg=black - # default statusbar color set-option -g status-style bg=colour237,fg=colour223 # bg=bg1, fg=fg1 @@ -68,8 +74,9 @@ set-option -g status-right-style none set-option -g status-right-length "80" set-window-option -g window-status-separator "" -set-option -g status-left "#[fg=colour248, bg=colour241] #S: #T #[fg=colour241, bg=colour237, nobold, noitalics, nounderscore]" -set-option -g status-right "#[fg=colour239, bg=colour237, nobold, nounderscore, noitalics]#[fg=colour246,bg=colour239] %b %d  %H:%M #[fg=colour248, bg=colour239, nobold, noitalics, nounderscore]#[fg=colour237, bg=colour248] #h " +set-option -g status-left "#[bg=colour241,fg=colour248] #S #[bg=colour237,fg=colour241,nobold,noitalics,nounderscore]" +set-option -g status-right "#[bg=colour237,fg=colour239 nobold, nounderscore, noitalics]#[bg=colour239,fg=colour246] %Y-%m-%d  %H:%M #[bg=colour239,fg=colour248,nobold,noitalics,nounderscore]#[bg=colour248,fg=colour237] #h " + +set-window-option -g window-status-current-format "#[bg=colour214,fg=colour237,nobold,noitalics,nounderscore]#[bg=colour214,fg=colour239] #I #[bg=colour214,fg=colour239,bold] #W#{?window_zoomed_flag,*Z,} #[bg=colour237,fg=colour214,nobold,noitalics,nounderscore]" +set-window-option -g window-status-format "#[bg=colour239,fg=colour237,noitalics]#[bg=colour239,fg=colour223] #I #[bg=colour239,fg=colour223] #W #[bg=colour237,fg=colour239,noitalics]" -set-window-option -g window-status-current-format "#[fg=colour237, bg=colour214, nobold, noitalics, nounderscore]#[fg=colour239, bg=colour214] #I #[fg=colour239, bg=colour214, bold] #W #[fg=colour214, bg=colour237, nobold, noitalics, nounderscore]" -set-window-option -g window-status-format "#[fg=colour237,bg=colour239,noitalics]#[fg=colour223,bg=colour239] #I #[fg=colour223, bg=colour239] #W #[fg=colour239, bg=colour237, noitalics]"