Refactor dotfiles into .config
Include local bin files
This commit is contained in:
parent
2741ae520b
commit
d2467209b7
204 changed files with 44454 additions and 3 deletions
72
.config/tmux/tmux.conf
Normal file
72
.config/tmux/tmux.conf
Normal file
|
@ -0,0 +1,72 @@
|
|||
# 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 ~/.config/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
|
||||
|
||||
# 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"
|
||||
|
||||
# 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!"
|
||||
|
||||
# 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
|
||||
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'
|
Loading…
Add table
Add a link
Reference in a new issue