78 lines
2.5 KiB
Bash
78 lines
2.5 KiB
Bash
# 24bit color fix
|
|
set-option -sa terminal-overrides ",xterm*:Tc"
|
|
|
|
# Set tmux prefix
|
|
unbind C-b
|
|
set -g prefix C-Space
|
|
bind C-Space send-prefix
|
|
|
|
# Shift+Alt vim nav keys
|
|
bind -n M-H previous-window
|
|
bind -n M-L next-window
|
|
|
|
bind s run-shell "tmuxss"
|
|
bind -n C-s run-shell "tmuxss"
|
|
bind C-k run-shell "tmuxss -k"
|
|
bind C-r run-shell "tmuxss -r"
|
|
bind C-o display-popup -E "tmuxss -i"
|
|
bind C-t display-popup -E "fish"
|
|
unbind -n C-k
|
|
unbind Space
|
|
bind-key i run-shell "source ~/.config/tmux/functions.sh && bring_pane"
|
|
bind M-f move-pane -t '.-'
|
|
bind M-r move-pane -h -t '.-'
|
|
|
|
# bind -n C-k run-shell 'tmux switch-client -t "$(tmux list-sessions | grep -o "^AP[0-9]*" | tail -n 1)"'
|
|
|
|
# Vi copy-mode
|
|
setw -g mode-keys vi
|
|
|
|
bind -T copy-mode-vi v send -X begin-selection
|
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'pbcopy'
|
|
bind P paste-buffer
|
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'pbcopy'
|
|
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
# Fixes some tmux configuration quirks
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
set -g @plugin 'tmux-plugins/vim-tmux-navigator'
|
|
#set -g @plugin 'catppuccin/tmux'
|
|
# Temporary fix while window seperators are still broken
|
|
set -g @plugin 'mklbravo/catppuccin-tmux#feat/window-specific-separator-config'
|
|
set -g @plugin 'tmux-plugins/tmux-battery'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-copycat'
|
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
|
set -g @yank_with_mouse off
|
|
set -g @shell_mode 'vi'
|
|
|
|
set -g @catppuccin_custom_plugin_dir "~/.config/tmux/plugins/custom"
|
|
|
|
set -g @catppuccin_window_left_separator ""
|
|
set -g @catppuccin_window_right_separator " "
|
|
set -g @catppuccin_window_middle_separator " █"
|
|
set -g @catppuccin_window_default_middle_separator " █"
|
|
set -g @catppuccin_window_current_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 "all"
|
|
set -g @catppuccin_window_current_text "#W"
|
|
|
|
set -g @catppuccin_status_modules_right "directory battery application session"
|
|
|
|
# set -g @catppuccin_status_left_separator " "
|
|
# set -g @catppuccin_status_right_separator ""
|
|
#set -g @catppuccin_status_left_separator ""#""
|
|
#set -g @catppuccin_status_right_separator ""# " "
|
|
set -g @catppuccin_status_fill "icon"
|
|
set -g @catppuccin_status_connect_separator "yes"
|
|
|
|
set -g @catppuccin_directory_text "#{pane_current_path}"
|
|
set -g @catppuccin_directory_icon " "
|
|
set -g status-interval 1
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|