tmux: Reorganize key bindings
This commit is contained in:
parent
5015de5eb1
commit
5e6c42473f
|
@ -1,11 +1,6 @@
|
|||
set -ga terminal-overrides ",xterm-256color:Tc"
|
||||
unbind C-b
|
||||
set-option -g prefix C-space
|
||||
set -g mouse on
|
||||
bind-key C-space last-window
|
||||
bind-key space copy-mode
|
||||
bind-key ç split-pane -h
|
||||
bind-key Ç split-pane
|
||||
set -g base-index 1
|
||||
setw -g mode-keys vi
|
||||
set-option -sg escape-time 10
|
||||
|
@ -27,7 +22,28 @@ set -g @t-bind "C-t"
|
|||
set-option -g status-bg '#1e2030'
|
||||
set-option -g status-fg '#cad3f5'
|
||||
|
||||
bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "~/.config/tmux/tmux.conf reloaded"
|
||||
unbind C-b
|
||||
unbind l
|
||||
bind C-space last-window
|
||||
bind space copy-mode
|
||||
bind ç split-pane -h
|
||||
bind Ç split-pane
|
||||
bind C-h new-window htop
|
||||
bind r source-file ~/.config/tmux/tmux.conf \; display-message "~/.config/tmux/tmux.conf reloaded"
|
||||
bind C-n new-window -c "#{pane_current_path}" nnn
|
||||
bind C-g new-window -c "#{pane_current_path}" lazygit
|
||||
bind C-d new-window lazydocker
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
bind C-c {
|
||||
set-option -g status-bg '#e4dcd4'
|
||||
set-option -g status-fg '#3d2b5a'
|
||||
set -g @cpu_low_bg_color "#[fg=green, bg=#e4dcd4]" # background color when cpu is low
|
||||
set -g @cpu_medium_bg_color "#[fg=yellow, bg=#e4dcd4]" # background color when cpu is medium
|
||||
set -g @cpu_high_bg_color "#[fg=red, bg=#e4dcd4]" # background color when cpu is high
|
||||
}
|
||||
|
||||
set-option -g status-left-length 50
|
||||
|
||||
|
@ -45,7 +61,3 @@ set -g @plugin 'joshmedeski/t-smart-tmux-session-manager'
|
|||
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
|
||||
bind-key C-h new-window htop
|
||||
bind-key C-n new-window -c "#{pane_current_path}" nnn
|
||||
bind-key C-g new-window -c "#{pane_current_path}" lazygit
|
||||
bind-key C-d new-window lazydocker
|
||||
|
|
Loading…
Reference in New Issue