From 9298053977b7429dec036f42c9a3ec320184552a Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Mon, 17 Jun 2024 19:24:17 +0300 Subject: Moved tmux config to ~/.config/tmux/tmux.conf (previously ~/.tmux.conf --- .config/tmux/tmux.conf | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ .tmux.conf | 60 -------------------------------------------------- 2 files changed, 60 insertions(+), 60 deletions(-) create mode 100644 .config/tmux/tmux.conf delete mode 100644 .tmux.conf diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf new file mode 100644 index 0000000..ccae8f7 --- /dev/null +++ b/.config/tmux/tmux.conf @@ -0,0 +1,60 @@ +# Fix colors +set-option -sa terminal-features "xterm-256color:RGB" + +# Lua-style indexing +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 + +# Open panes in current directory +bind '"' split-window -v -c "#{pane_current_path}" +bind '%' split-window -h -c "#{pane_current_path}" + +# Set status bar to the bottom (default) +set-option -g status-position bottom + +# Keybinds +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 + +set -g mouse on +bind-key r source-file ~/.tmux.conf + +# Navigate panes with Prefix + HJKL +bind-key h select-pane -L +bind-key j select-pane -D +bind-key k select-pane -U +bind-key l select-pane -R + +# Load plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +#set -g @plugin 'christoomey/vim-tmux-navigator' +set -g @plugin 'tmux-plugins/tmux-yank' +set -g @plugin 'catppuccin/tmux' + +# Catppuccin Settings +set -g @catppuccin_window_left_separator "" +set -g @catppuccin_window_right_separator " " +set -g @catppuccin_window_middle_separator " █" +set -g @catppuccin_window_number_position "right" + +set -g @catppuccin_window_default_fill "number" +set -g @catppuccin_window_default_text "#W" + +set -g @catppuccin_window_current_fill "number" +set -g @catppuccin_window_current_text "#W" + +set -g @catppuccin_status_modules_right "directory session" +set -g @catppuccin_status_left_separator " " +set -g @catppuccin_status_right_separator "" +set -g @catppuccin_status_fill "icon" +set -g @catppuccin_status_connect_separator "no" + +set -g @catppuccin_directory_text "#{pane_current_path}" + +# Load TPM, must be the last line +run '~/.tmux/plugins/tpm/tpm' + diff --git a/.tmux.conf b/.tmux.conf deleted file mode 100644 index ccae8f7..0000000 --- a/.tmux.conf +++ /dev/null @@ -1,60 +0,0 @@ -# Fix colors -set-option -sa terminal-features "xterm-256color:RGB" - -# Lua-style indexing -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 - -# Open panes in current directory -bind '"' split-window -v -c "#{pane_current_path}" -bind '%' split-window -h -c "#{pane_current_path}" - -# Set status bar to the bottom (default) -set-option -g status-position bottom - -# Keybinds -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 - -set -g mouse on -bind-key r source-file ~/.tmux.conf - -# Navigate panes with Prefix + HJKL -bind-key h select-pane -L -bind-key j select-pane -D -bind-key k select-pane -U -bind-key l select-pane -R - -# Load plugins -set -g @plugin 'tmux-plugins/tpm' -set -g @plugin 'tmux-plugins/tmux-sensible' -#set -g @plugin 'christoomey/vim-tmux-navigator' -set -g @plugin 'tmux-plugins/tmux-yank' -set -g @plugin 'catppuccin/tmux' - -# Catppuccin Settings -set -g @catppuccin_window_left_separator "" -set -g @catppuccin_window_right_separator " " -set -g @catppuccin_window_middle_separator " █" -set -g @catppuccin_window_number_position "right" - -set -g @catppuccin_window_default_fill "number" -set -g @catppuccin_window_default_text "#W" - -set -g @catppuccin_window_current_fill "number" -set -g @catppuccin_window_current_text "#W" - -set -g @catppuccin_status_modules_right "directory session" -set -g @catppuccin_status_left_separator " " -set -g @catppuccin_status_right_separator "" -set -g @catppuccin_status_fill "icon" -set -g @catppuccin_status_connect_separator "no" - -set -g @catppuccin_directory_text "#{pane_current_path}" - -# Load TPM, must be the last line -run '~/.tmux/plugins/tpm/tpm' - -- cgit v1.3.1