From 21eb1eb27571e671fceaf29d55c98c7b034dd0f2 Mon Sep 17 00:00:00 2001 From: __ Date: Fri, 5 Sep 2025 20:33:45 +0200 Subject: [PATCH] Add tmux --- dot_config/tmux/tmux.conf | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 dot_config/tmux/tmux.conf diff --git a/dot_config/tmux/tmux.conf b/dot_config/tmux/tmux.conf new file mode 100644 index 0000000..b911797 --- /dev/null +++ b/dot_config/tmux/tmux.conf @@ -0,0 +1,40 @@ +set-option -sa terminal-overrides ",xterm*:Tc" +set -g mouse on + +unbind C-b +set -g prefix C-Space +bind C-Space send-prefix + +set -g base-index 1 +set -g pane-base-index 1 +set-window-option -g pane-base-index 1 +set-option -g renumber-windows 1 + +#set-window-option -g mode vi + +bind -n M-Left select-pane -L +bind -n M-Right select-pane -R +bind -n M-Up select-pane -U +bind -n M-Down select-pane -D + +bind -n S-Left previous-window +bind -n S-Right next-window + +bind -n M-H previous-window +bind -n M-L next-window + + + +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'dreamsofcode-io/catppuccin-tmux' +set -g @plugin 'tmux-pulgins/tmux-yank' + +run '~/.tmux/plugins/tpm/tpm' + +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 + +bind '"' split-window -v -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}"