X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.tmux.conf;h=b2089ede659c7c4320c7b3942e53e7a1d822e641;hb=4360b702164e1e49fb72a637f3007799d6ed05ac;hp=d7a47e5211fabcd50e0eea2561d13141b1d59144;hpb=c6f2f1a0b25b7f5993cb1a958f7d5bc60fbf7ac0;p=dotfiles.git diff --git a/.tmux.conf b/.tmux.conf index d7a47e5..b2089ed 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -31,29 +31,21 @@ set-option -g set-titles on # Terminal emulator window title set-option -g set-titles-string 'tmux #S.#I.#P #T' # session, window number, pane number, title -set-option -g message-bg black -set-option -g message-fg white +set-option -g message-style bg=black,fg=white # Soften status bar color from black on harsh green to black on cyan -set-option -g status-bg cyan -set-option -g status-fg black - -set-option -g pane-active-border-bg default -set-option -g pane-active-border-fg green -set-option -g pane-border-bg default -set-option -g pane-border-fg white - -set-window-option -g mode-bg black - -set-window-option -g window-status-bg cyan -set-window-option -g window-status-current-attr default -set-window-option -g window-status-current-fg blue -set-window-option -g window-status-bell-attr default -set-window-option -g window-status-bell-fg red -set-window-option -g window-status-content-attr default -set-window-option -g window-status-content-fg yellow -set-window-option -g window-status-activity-attr default -set-window-option -g window-status-activity-fg yellow +set-option -g status-style bg=cyan,fg=black + +set-option -g pane-active-border-style bg=default,fg=red +set-option -g pane-border-style bg=default,fg=blue + +set-window-option -g mode-style bg=black + +set-window-option -g window-status-activity-style fg=yellow +set-window-option -g window-status-bell-style fg=red +set-window-option -g window-status-content-style fg=magenta +set-window-option -g window-status-current-style bg=blue,fg=white +set-window-option -g window-status-style bg=cyan,fg=black set-option -g status-left '[#S.#I.#P]' @@ -64,9 +56,6 @@ set-option -g status-right '' # Increase scrollback lines set-option -g history-limit 1000 -# R to reload config without restart -bind-key R source-file ~/.tmux.conf \; display "Reloaded!" - # Set the command prefix to match GNU screen (CTRL+a) # set-option -g prefix C-a # @@ -77,6 +66,31 @@ bind-key R source-file ~/.tmux.conf \; display "Reloaded!" # C-a for last-window # bind-key C-a last-window +# R to reload config without restart +bind-key R source-file ~/.tmux.conf \; display "Reloaded!" + +# vim-like navigation +unbind-key h; bind-key h select-pane -L +unbind-key j; bind-key j select-pane -D +unbind-key k; bind-key k select-pane -U +unbind-key l; bind-key l select-pane -R + +bind H resize-pane -L 10 +bind J resize-pane -D 10 +bind K resize-pane -U 10 +bind L resize-pane -R 10 + +bind -r C-h select-window -t :- +bind -r C-l select-window -t :+ + # Use vertical and horizontal chars to split the screen bind-key | split-window -h bind-key - split-window -v + +# Copy tmux copy buffer to X clipboard +# bind C-y run-shell "tmux save-buffer - | xclip -i" +bind -t emacs-copy C-p copy-pipe "xsel -i -p && xsel -o -p | xsel -i -b" +bind -t vi-copy C-p copy-pipe "xsel -i -p && xsel -o -p | xsel -i -b" +# Copy X clipboard to tmux paste buffer +# bind C-p run-shell "xclip -o | tmux load-buffer -; tmux paste-buffer" +bind C-y run-shell "xsel -o | tmux load-buffer - ; tmux paste-buffer"