dotfiles/.config/tmux/tmux.conf

78 lines
2.3 KiB
Text
Raw Normal View History

# Allow cursor passthrough
set -g allow-passthrough on
2024-06-15 22:51:38 -07:00
# Custom Prefix
set -g prefix C-space
2025-03-06 20:36:24 -08:00
bind-key C-space send-prefix
2024-06-15 22:51:38 -07:00
2024-10-10 22:18:52 -07:00
# Shortcut to custom hints
bind h run-shell "tmux popup -xC -yC -w50% -h75% 'cat ~/.config/tmux/hints'"
2024-10-10 22:18:52 -07:00
2024-06-15 22:51:38 -07:00
# Shortcut to sync panes
bind C-x setw synchronize-panes
# Shortcut to respawn panw
bind M-r respawn-pane -k
2024-06-13 23:03:12 -07:00
# Mouse Scrolling
set -g mouse on
# Mouse Copy
bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "xclip"\; display "Copied"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "xclip"\; display "Copied"
2024-06-13 23:03:12 -07:00
# Split
bind S-down split-window -v
bind S-right split-window -h
# Navigation
bind -n C-Left select-pane -L
bind -n C-Right select-pane -R
bind -n C-Up select-pane -U
bind -n C-Down select-pane -D
bind -n C-S-Left previous-window
bind -n C-S-Right next-window
# Config
bind R source-file ~/.config/tmux/tmux.conf \; display "Config reloaded!"
2024-06-13 23:03:12 -07:00
# Colors
set -g default-terminal "screen-256color"
set -g pane-border-style fg='#008b8b'
set -g pane-active-border-style fg='#34E2E2'
set -g message-style bg='#222222',fg='#34E2E2'
set -g status-style bg='#222222',fg='#AD7FA8'
# Status
set -g status-left '#{?client_prefix,#[fg=#008b8b]█, }'
set -g status-right '#[fg=#ad7fa8]| #S | #(hostname -I | cut -d" " -f1) | %Y-%m-%d %H:%M '
set -g status-right-length 50
2024-06-13 23:03:12 -07:00
set -g status-interval 1
set-window-option -g window-status-style fg='#008b8b',bg=default
set-window-option -g window-status-current-style fg='#222222',bg='#ad7fa8'
2024-10-10 20:55:16 -07:00
# Persist Between Reboots
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on'
set -g @continuum-boot 'on'
set -g @continuum-save-interval '10' # Save every n minutes
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-processes '"~autossh->autossh *" ssh nano k9s nvim'
2024-10-10 20:55:16 -07:00
2024-10-10 21:25:26 -07:00
# Open Links
set -g @plugin 'tmux-plugins/tmux-open'
set -g @open-S 'https://search.brave.com/search?q='
# Integrate with nvim navigation
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @vim_navigator_mapping_left "C-Left" # C-h"
set -g @vim_navigator_mapping_right "C-Right" # C-l"
set -g @vim_navigator_mapping_up "C-Up" # C-k"
set -g @vim_navigator_mapping_down "C-Down" # C-j"
2024-06-13 23:03:12 -07:00
# Load Plugins
2024-10-10 20:55:16 -07:00
run '~/.tmux/plugins/tpm/tpm'