diff options
Diffstat (limited to '.tmux.conf')
| -rw-r--r-- | .tmux.conf | 82 |
1 files changed, 65 insertions, 17 deletions
@@ -1,15 +1,27 @@ -set -g mouse on +# -> git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm +# -> tmux source .tmux.conf +# prefix + I to install plugins -setw -g mode-keys vi -bind h select-pane -L -bind j select-pane -D -bind k select-pane -U -bind l select-pane -R +# ========================================== +# General settings -set -g base-index 1 -set -g pane-base-index 1 +set -g mouse on +set -s escape-time 0 +set -g base-index 1 +set -g pane-base-index 1 set-window-option -g pane-base-index 1 -set-option -g renumber-windows on +set-option -g renumber-windows on + +setw -g mode-keys vi +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle +bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel + +# ========================================== +# Keybindings + +bind '"' split-window -v -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" bind -n M-Left select-pane -L bind -n M-Right select-pane -R @@ -19,19 +31,55 @@ bind -n M-Down select-pane -D bind -n S-Left previous-window bind -n S-Right next-window +# ========================================== +# style + +set -g status-style bg="#121212",fg="#888888" +set -g status-justify left + +set -g status-left "#[fg=#1e1e2e,bg=#bddeab,bold] #S #[fg=#bddeab,bg=#121212,nobold] " +set -g status-left-length 20 + +set -g status-right "" + +setw -g window-status-format "#[fg=#888888,bg=#222222] #I:#W " +setw -g window-status-current-format "#[fg=#bddeab,bg=#333333,bold] #I:#W " + +set -g pane-border-style fg="#333333" +set -g pane-active-border-style fg="#bddeab" + +# ========================================== +# Plugins options + +# SessionX +# --- Personalizacja SessionX --- +set -g @sessionx-window-mode 'on' +set -g @sessionx-bind 'w' +set -g @sessionx-window-height '75%' +set -g @sessionx-window-width '65%' + +set -g @sessionx-pointer-color '#bddeab' +set -g @sessionx-prompt-color '#bddeab' +set -g @sessionx-highlight-location-color '#bddeab' + +set -g @sessionx-preview-enabled 'true' +set -g @sessionx-preview-location 'right' +set -g @sessionx-preview-ratio '45%' +set -g @sessionx-filter-smart 'on' + +# Resurrect Continuum set -g @continuum-restore 'on' -set -g @catppuccin_flavour 'mocha' +set -g @resurrect-capture-pane-contents 'on' + +# ========================================== +# TPM set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'christoomey/vim-tmux-navigator' -set -g @plugin 'dreamsofcode-io/catppuccin-tmux' set -g @plugin 'tmux-plugins/tmux-yank' -set -g @plugin 'tmux-plugins/tmux-resurrect' -set -g @plugin 'tmux-plugins/tmux-continuum' +set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @plugin 'tmux-plugins/tmux-continuum' +set -g @plugin 'omerxx/tmux-sessionx' run '~/.tmux/plugins/tpm/tpm' - -bind '"' split-window -v -c "#{pane_current_path}" -bind % split-window -h -c "#{pane_current_path}" -set-option -g status-bg "#121212" |