Minor tmux config changes
This commit is contained in:
parent
6ec06ee1d2
commit
2f1b35ce5c
4 changed files with 16 additions and 14 deletions
|
@ -16,6 +16,7 @@ bind l split-window -h
|
|||
# Rebind command key to ;
|
||||
bind \; command-prompt
|
||||
|
||||
bind-key -n M-C-l send-keys C-l
|
||||
# Reload config on C-r
|
||||
bind C-r source-file ~/.config/tmux/tmux.conf
|
||||
|
||||
# vim: ft=tmux
|
||||
|
|
|
@ -2,7 +2,6 @@ set -g @plugin 'odedlaz/tmux-onedark-theme'
|
|||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-battery'
|
||||
|
||||
|
||||
# Battery icons
|
||||
set -g @batt_icon_charge_tier8 ' '
|
||||
set -g @batt_icon_charge_tier7 ' '
|
||||
|
@ -18,6 +17,7 @@ set -g @onedark_time_format "%I:%M %p"
|
|||
set -g @onedark_date_format "%D"
|
||||
set -g @onedark_widgets "#{battery_icon_charge} #{battery_percentage}%"
|
||||
|
||||
# Run tmux-plugin-manager
|
||||
run '~/.local/share/tmux-plugins/tpm/tpm'
|
||||
|
||||
# vim: ft=tmux
|
||||
|
|
|
@ -8,34 +8,35 @@ set -as terminal-overrides ",xterm*:Tc"
|
|||
# Get rid of nvim escape delay
|
||||
set -s escape-time 0
|
||||
|
||||
# Enable vim mode in visual
|
||||
setw -g mode-keys vi
|
||||
|
||||
|
||||
# enable activity alerts
|
||||
setw -g monitor-activity on
|
||||
set -g visual-activity on
|
||||
|
||||
# Center the window list ? idk what this does
|
||||
# set -g status-justify centre
|
||||
|
||||
# Start with window 1 (instead of 0)
|
||||
set -g base-index 1
|
||||
|
||||
# Start with pane 1
|
||||
setw -g pane-base-index 1
|
||||
|
||||
# Reload config on C-r
|
||||
bind C-r source-file ~/.config/tmux/tmux.conf
|
||||
# Disable "Activity in window N" message
|
||||
set -g visual-activity off
|
||||
set -g monitor-activity off
|
||||
|
||||
# Resize all windows to max size?
|
||||
setw -g aggressive-resize on
|
||||
|
||||
# Change history limit
|
||||
set -g history-limit 4096
|
||||
|
||||
# Default status bar config (doesn't change the behavior of custom status bars)
|
||||
set -g status-justify left
|
||||
set -g status-bg default
|
||||
set -g status-bg green
|
||||
set -g status-interval 2
|
||||
|
||||
# Source extra configs
|
||||
source-file ~/.config/tmux/keybinds.conf
|
||||
source-file ~/.config/tmux/plugins.conf
|
||||
# source-file ~/.config/tmux/vim.conf
|
||||
source-file ~/.config/tmux/vim.conf
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
is_vim="ps -o state= -o comm= -t '#{pane_tty}'| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
|
||||
|
||||
bind-key -n M-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
|
||||
bind-key -n M-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
|
||||
bind-key -n M-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
|
||||
bind-key -n M-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
|
||||
bind-key -n M-h if-shell "$is_vim" "send-keys M-h" "select-pane -L"
|
||||
bind-key -n M-j if-shell "$is_vim" "send-keys M-j" "select-pane -D"
|
||||
bind-key -n M-k if-shell "$is_vim" "send-keys M-k" "select-pane -U"
|
||||
bind-key -n M-l if-shell "$is_vim" "send-keys M-l" "select-pane -R"
|
||||
|
||||
bind-key -T copy-mode-vi M-h select-pane -L
|
||||
bind-key -T copy-mode-vi M-j select-pane -D
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue