This commit is contained in:
wooshdude
2024-12-02 17:00:02 -08:00
parent 6c4a8d81f8
commit a55e5d45ea
4 changed files with 800 additions and 702 deletions
+79 -17
View File
@@ -1,24 +1,86 @@
# ~/.tmux.conf
# Options to make tmux more pleasant
set-option -sa terminal-overrides ",xterm*:Tc"
set -g mouse on
set -g default-terminal "tmux-256color"
set -a terminal-features 'xterm-256color:RGB'
# Configure the catppuccin plugin
set -g @catppuccin_flavor "mocha"
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# Spawn a new window (tab equivalent)
bind -n M-c new-window
# Close the current pane
bind -n M-x kill-pane
# Switch to the previous window (tab equivalent)
bind -n M-b previous-window
# Switch to the next window (tab equivalent)
bind -n M-n next-window
# Split the window horizontally
bind -n M-v split-window -h
# Split the window vertically
bind -n M-g split-window -v
# Activate the pane on the left
bind -n M-h select-pane -L
# Activate the pane below
bind -n M-j select-pane -D
# Activate the pane above
bind -n M-k select-pane -U
# Activate the pane on the right
bind -n M-l select-pane -R
# Resize the pane to the left
bind -n M-Left resize-pane -L 5
# Resize the pane to the right
bind -n M-Right resize-pane -R 5
# Resize the pane down
bind -n M-Down resize-pane -D 5
# Resize the pane up
bind -n M-Up resize-pane -U 5
# Start windows and panes at 1, not 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 -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
#set -g @plugin 'catppuccin/tmux'
#set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
set -g @plugin 'wooshdude/catppuccin-tmux'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @catppuccin_flavour 'mocha'
set -g @catppuccin_window_status_style "rounded"
# Load catppuccin
run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux
# For TPM, instead use `run ~/.config/tmux/plugins/tmux/catppuccin.tmux`
# Make the status line pretty and add some modules
set -g status-right-length 100
set -g status-left-length 100
set -g status-left ""
set -g status-right "#{E:@catppuccin_date_time}"
set -g @catppuccin_window_current_number_color "#{@thm_magenta}"
run ~/.config/tmux/plugins/tmux-plugins/tmux-cpu/cpu.tmux
run ~/.config/tmux/plugins/tmux-plugins/tmux-battery/battery.tmux
# Or, if using TPM, just run TPM
#set -g @catppuccin_status_middle_separator ""
set -g @catppuccin_status_right_separator ""
set -g @catppuccin_status_left_separator ""
run '~/.tmux/plugins/tpm/tpm'
# set vi-mode
set-window-option -g mode-keys vi
# keybindings
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}"