From eacdbe6350e6775242b6af96f26bfd590c3d0840 Mon Sep 17 00:00:00 2001 From: dissimulo Date: Mon, 24 Aug 2026 18:35:51 -0700 Subject: [PATCH] tmux: status-*-length must exceed the RAW format string, not the rendered width tmux applies these limits as #{T;=/N:status-right}, truncating the format string BEFORE #[...] style directives are stripped. status-right renders 45 columns but is 129 characters of source; status-left renders 12 and is ~118. Capping either below its raw length severs the string mid-way, which presents as "the right side of the status bar vanished". Restores 451 (the long-standing value). An earlier commit today cut it to 60 believing a large value starved the bar -- that reasoning was backwards and introduced a hard truncation. Window formats stay plain: the circled numbers are U+2776, absent from DejaVu Sans Mono, and fontconfig substitutes a CJK double-width face that breaks monospace cell alignment. Only FreeMono carries them. --- .tmux.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index e8d3a39..5f8c1f4 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -72,16 +72,16 @@ set-window-option -g pane-base-index 1 set-window-option -g mouse on # color scheme (styled as vim-powerline) -set -g status-left-length 52 -set -g status-right-length 60 +set -g status-left-length 451 +set -g status-right-length 451 set -g status-style fg=white,bg=colour234 set -g pane-border-style fg=colour245 set -g pane-active-border-style fg=colour39 set -g message-style fg=colour16,bg=colour221,bold set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour252,bg=colour238,nobold]❯#[fg=colour245,bg=colour238,bold] #(whoami) ' set -g status-right '#[bold][#[nobold,fg=colour229]#h#[fg=default] / #[fg=colour229]#(~/.local/bin/tmux-net)#[fg=default,bold]]#[nobold,fg=colour255] %-I:%M%P %d-%b-%Y ' -set -g window-status-format '#[fg=colour235,bg=colour252,nobold] #{?#{==:#{window_index},1},❶,#{?#{==:#{window_index},2},❷,#{?#{==:#{window_index},3},❸,#{?#{==:#{window_index},4},❹,#{?#{==:#{window_index},5},❺,#{?#{==:#{window_index},6},❻,#{?#{==:#{window_index},7},❼,#{?#{==:#{window_index},8},❽,#{?#{==:#{window_index},9},❾,#{?#{==:#{window_index},10},❿,#{window_index}}}}}}}}}}} #{b:pane_current_path} #W ' -set -g window-status-current-format '#[fg=colour234,bg=colour39,bold] [#[fg=colour232,bold]#{?window_zoomed_flag,#[fg=colour228],} #{?#{==:#{window_index},1},❶,#{?#{==:#{window_index},2},❷,#{?#{==:#{window_index},3},❸,#{?#{==:#{window_index},4},❹,#{?#{==:#{window_index},5},❺,#{?#{==:#{window_index},6},❻,#{?#{==:#{window_index},7},❼,#{?#{==:#{window_index},8},❽,#{?#{==:#{window_index},9},❾,#{?#{==:#{window_index},10},❿,#{window_index}}}}}}}}}}} #{b:pane_current_path} #W #[fg=colour234,bold]] ' +set -g window-status-format ' #I:#W ' +set -g window-status-current-format ' [#I:#W] ' set-option -g status-interval 60 # Patch for OS X pbpaste and pbcopy under tmux.