diff --git a/.tmux.conf b/.tmux.conf index 32f0ec8..8e81743 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -6,17 +6,17 @@ bind-key b send-prefix set -g base-index 1 # start windows numbering at 1 -setw -g pane-base-index 1 # make pane numbering consistent with windows +set-window-option -g pane-base-index 1 # make pane numbering consistent with windows -setw -g automatic-rename on # rename window to reflect current program +set-window-option -g automatic-rename on # rename window to reflect current program set -g renumber-windows on # renumber windows when a window is closed set -g set-titles on # set terminal title ## Commonly found settings not 100% sure on the point -setw -g monitor-activity on -set -g visual-activity on +set-window-option -g monitor-activity on +set-option -g visual-activity on #Double cntl-a goes to last window bind-key C-a last-window @@ -48,12 +48,11 @@ set-option -g status-position bottom # First line: Center (Window List) set-option -g status-format[0] '#[align=centre]#{W:#{E:window-status-format} ,#{E:window-status-current-format} }' - # Second line: Center (Time/Date, ACPI, CPU/Mem, Hostname) -set-option -g status-format[1] "#[align=centre][#[fg=cyan]%H:%M %d-%b-%y] [#[fg=yellow]#(acpi -b | awk -F', ' '{print $2, $3}')] [#[fg=green,bg=default,bright]#(tmux-mem-cpu-load)] [#[fg=blue]#h]" +set-option -g status-format[1] "#[align=centre][#[fg=red]Pending Updates: #(checkupdates | wc -l || echo "N/A")] #[fg=cyan][%H:%M %d-%b-%y] #[fg=yellow][#(acpi -b | awk -F', ' '{print $2, $3}')] #[fg=green,bg=default,bright][#(tmux-mem-cpu-load)] #[fg=blue][#h]" # Ensure window list is properly justified -set-option -g status-justify centre # Changed to centre +# set-option -g status-justify centre # Changed to centre # Background color for status bar (Blue) set -g status-bg colour24 @@ -103,7 +102,8 @@ bind F10 send-keys F10 bind F11 send-keys F11 bind F12 send-keys F12 -# renumber windows after closing one -set -g renumber-windows on +set -g history-limit 50000 -set -g history-limit 50000 \ No newline at end of file +set-window-option -g aggressive-resize on + +set-option -g automatic-rename on