diff --git a/.config/tmux/keybinds.conf b/.config/tmux/keybinds.conf index ad0204e..91f4b97 100644 --- a/.config/tmux/keybinds.conf +++ b/.config/tmux/keybinds.conf @@ -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 diff --git a/.config/tmux/plugins.conf b/.config/tmux/plugins.conf index 34bb5bb..3fd32af 100644 --- a/.config/tmux/plugins.conf +++ b/.config/tmux/plugins.conf @@ -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 diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index e6ee951..4f6b625 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -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 diff --git a/.config/tmux/vim.conf b/.config/tmux/vim.conf index 260c8ff..1357408 100644 --- a/.config/tmux/vim.conf +++ b/.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