X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.tmux.conf;h=b2089ede659c7c4320c7b3942e53e7a1d822e641;hb=4360b702164e1e49fb72a637f3007799d6ed05ac;hp=0984038332f49fecd547fe952efd7505c8fbffa3;hpb=d0f9a0a8e473335747004af968df127f72ae34d0;p=dotfiles.git diff --git a/.tmux.conf b/.tmux.conf index 0984038..b2089ed 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -56,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 # @@ -69,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"