From eb3237dbe45b9f8cbf6a74e6bc8a6682bd5ad11a Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 30 May 2023 13:56:36 -0400 Subject: [PATCH] Add some settings to improve things in tmux --- tmux.normal.conf | 2 ++ tmux.powerline.conf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tmux.normal.conf b/tmux.normal.conf index 53e1570..2c974db 100644 --- a/tmux.normal.conf +++ b/tmux.normal.conf @@ -26,6 +26,7 @@ bind Space send-prefix # # general set-option -g default-terminal "tmux-256color" #set $TERM variable so programs know how to behave +set-option -sa terminal-features ',xterm-256color:RGB' set-option -g base-index 1 #start counting windows at 1 instead of 0 (for more logical keboard-switching) set-option -g pane-base-index 1 #start counting panes at 1 instead of 0 set-option -g renumber-windows on #when a window is closed, renumber the remaining windows @@ -36,6 +37,7 @@ set-option -g display-time 2000 #number of ms for status line messages and other set-option -g display-panes-time 2000 #number of ms to show indicators from the display-panes command set-option -sg escape-time 0 #allow commands immediately following send-prefix set-option -sg repeat-time 600 #allow 600ms between repeatable commands +set-option -g focus-events on set-window-option -g aggressive-resize on #only resize a window if a smaller client is actively looking set-window-option -g monitor-activity on #monitor for activity in windows set-window-option -g visual-activity off #show the activity being monitored for in the status bar diff --git a/tmux.powerline.conf b/tmux.powerline.conf index 52576d7..c39816b 100644 --- a/tmux.powerline.conf +++ b/tmux.powerline.conf @@ -26,6 +26,7 @@ bind Space send-prefix # # general set-option -g default-terminal "tmux-256color" #set $TERM variable so programs know how to behave +set-option -sa terminal-features ',xterm-256color:RGB' set-option -g base-index 1 #start counting windows at 1 instead of 0 (for more logical keboard-switching) set-option -g pane-base-index 1 #start counting panes at 1 instead of 0 set-option -g renumber-windows on #when a window is closed, renumber the remaining windows @@ -36,6 +37,7 @@ set-option -g display-time 2000 #number of ms for status line messages and other set-option -g display-panes-time 2000 #number of ms to show indicators from the display-panes command set-option -sg escape-time 0 #allow commands immediately following send-prefix set-option -sg repeat-time 600 #allow 600ms between repeatable commands +set-option -g focus-events on set-window-option -g aggressive-resize on #only resize a window if a smaller client is actively looking set-window-option -g monitor-activity on #monitor for activity in windows set-window-option -g visual-activity off #show the activity being monitored for in the status bar