89 lines
2.8 KiB
Bash
89 lines
2.8 KiB
Bash
#set -g terminal-overrides 'xterm*:smcup@:rmcup@'
|
|
#set -g @plugin 'tmux-plugins/tpm'
|
|
|
|
# Custom Prefix
|
|
set -g prefix C-space
|
|
bind-key C-space send-prefix
|
|
|
|
# Shortcut to custom hints
|
|
bind h run-shell "tmux popup -xC -yC -w50% -h75% 'cat ~/.tmux/hints'"
|
|
|
|
# Shortcut to sync panes
|
|
bind C-x setw synchronize-panes
|
|
|
|
# Shortcut to respawn panw
|
|
bind M-r respawn-pane -k
|
|
|
|
# Mouse Scrolling
|
|
set -g mouse on
|
|
#set -g @plugin 'nhdaly/tmux-better-mouse-mode'
|
|
#set -g @scroll-without-changing-pane "on"
|
|
#set -g @emulate-scroll-for-no-mouse-alternate-buffer "on"
|
|
|
|
#unbind -T copy-mode MouseDragEnd1Pane
|
|
#bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection primary -filter | xclip -selection clipboard"
|
|
|
|
# Mouse Copy
|
|
#set -g @plugin 'tmux-plugins/tmux-yank'
|
|
#set -g @yank_action 'copy-pipe-no-clear'
|
|
#set -g @yank_selection_mouse 'copy-pipe-no-clear'
|
|
#bind -T copy-mode C-C send -X copy-pipe-no-clear "xsel -i --clipboard"\; display "Copied"
|
|
#bind -T copy-mode-vi C-C send -X copy-pipe-no-clear "xsel -i --clipboard"\; display "Copied"
|
|
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"
|
|
#set -g @yank_with_mouse off
|
|
#set -g @yank_line 'C-C'
|
|
|
|
# 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 ~/.tmux.conf \; display "Config reloaded!"
|
|
|
|
# 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]#(hostname -I | cut -d" " -f1) %Y-%m-%d %H:%M'
|
|
#hostname -I | cut -d' ' -f1
|
|
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'
|
|
|
|
# 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 @resurrect-processes 'ssh nano k9s'
|
|
|
|
# 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"
|
|
|
|
|
|
# Load Plugins
|
|
run '~/.tmux/plugins/tpm/tpm'
|