86 lines
2.3 KiB
Plaintext
86 lines
2.3 KiB
Plaintext
# Colors with alacritty
|
|
set-option -sa terminal-overrides ",alacritty:Tc"
|
|
|
|
# enable mouse support
|
|
set -g mouse on
|
|
|
|
# start window and panes indexing at 1
|
|
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
|
|
|
|
# SPEED
|
|
set -g escape-time 0
|
|
set-option -g status-interval 1
|
|
|
|
# set prefix key to ctrl + space
|
|
unbind C-b
|
|
set -g prefix C-Space
|
|
bind C-Space send-prefix
|
|
|
|
bind -n M-K previous-window
|
|
bind -n M-J next-window
|
|
|
|
# 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}"
|
|
|
|
# Floating popup keybindings
|
|
bind-key t run-shell 'tmux-popup zsh'
|
|
bind-key g run-shell 'tmux-popup lazygit'
|
|
bind-key f run-shell 'tmux-popup nnn'
|
|
bind-key h run-shell 'tmux-popup htop'
|
|
bind-key g run-shell 'tmux-popup t'
|
|
|
|
# Vim keybindings for pane movement
|
|
setw -g mode-keys vi
|
|
bind-key h select-pane -L
|
|
bind-key j select-pane -D
|
|
bind-key k select-pane -U
|
|
bind-key l select-pane -R
|
|
|
|
# Skip kill pane %Number% (y/n) prompt
|
|
bind-key x kill-pane
|
|
|
|
# Don't exit from tmux when closing a session
|
|
set -g detach-on-destroy off
|
|
|
|
# Catppuccin settings
|
|
set -g @catppuccin_flavour 'frappe'
|
|
set -g @catppuccin_window_left_separator "█"
|
|
set -g @catppuccin_window_right_separator "█ "
|
|
set -g @catppuccin_window_number_position "right"
|
|
set -g @catppuccin_window_middle_separator " █"
|
|
|
|
set -g @catppuccin_window_default_fill "number"
|
|
|
|
set -g @catppuccin_window_current_fill "number"
|
|
set -g @catppuccin_window_current_text "#{pane_current_path}"
|
|
|
|
set -g @catppuccin_status_modules "application session date_time"
|
|
set -g @catppuccin_status_left_separator ""
|
|
set -g @catppuccin_status_right_separator " "
|
|
set -g @catppuccin_status_right_separator_inverse "yes"
|
|
set -g @catppuccin_status_fill "all"
|
|
set -g @catppuccin_status_connect_separator "no"
|
|
|
|
# Bar to top
|
|
set-option -g status-position top
|
|
|
|
# Plugins
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
|
set -g @plugin 'christoomey/vim-tmux-navigator'
|
|
set -g @plugin 'catppuccin/tmux'
|
|
set -g @plugin 'wfxr/tmux-fzf-url'
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|