X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/06bd880a78b25641a6bcadf3f307440d8a06a3ef..refs/heads/master:/tmux/tmux.conf diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 487d7e1..ced2e1c 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -1,8 +1,18 @@ -set -g default-terminal "tmux-256color" +set -g allow-passthrough on set -g set-titles on +set -g mouse set -g mode-keys vi +# Reduce time to consider Esc+ as +set -sg escape-time 10 +set -sg extended-keys always + +# Start windows and panes at 1, not 0 +set -g base-index 1 +setw -g pane-base-index 1 +bind-key 0 select-window -t 10 + bind-key Escape copy-mode unbind-key p bind-key p paste-buffer @@ -11,10 +21,6 @@ bind-key -T copy-mode-vi 'y' send-keys -X copy-selection bind-key -T copy-mode-vi 'Space' send-keys -X halfpage-down bind-key -T copy-mode-vi 'Bspace' send-keys -X halfpage-up -# extra commands for interacting with the ICCCM clipboard -bind-key C-c run "tmux save-buffer - | xclip -i -sel clipboard" -bind-key C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer" - # easy-to-remember split pane commands bind-key | split-window -h bind-key - split-window -v @@ -30,9 +36,14 @@ bind-key l select-pane -R # moving between windows with vim movement keys bind-key -r C-h select-window -t :- bind-key -r C-l select-window -t :+ +bind-key r move-window -r # reorder windows # resize panes with vim movement keys bind-key -r H resize-pane -L 5 bind-key -r J resize-pane -D 5 bind-key -r K resize-pane -U 5 bind-key -r L resize-pane -R 5 + +#TODO use THEME env somehow, see FORMATS in tmux(1) +set -g @plugin "arcticicestudio/nord-tmux" +run '$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm'