From 8633369a8d0e28a044f7d846820726bed209d05a Mon Sep 17 00:00:00 2001 From: phone Date: Thu, 4 Jan 2024 18:36:24 +0300 Subject: [PATCH] Tmux : Show attached clients count. --- .config/tmux/tmux.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index ab8cadc..cd9b7c0 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -70,10 +70,10 @@ set -g window-size smallest set -g status-position bottom set -g status-justify left set -g status-style 'bg=yellow fg=black dim' -set -g status-left ' #H-#S ' +set -g status-left ' #H-#S #(count=$(tmux list-clients | wc -l); [ ${count} -gt 1 ] && echo "(${count}) ")' set -g status-right '#[fg=black,bg=orange] #(head -c -1 /sys/class/power_supply/BAT*/capacity 2> /dev/null && echo -n "% ")%Y-%m-%d %H:%M ' set -g status-right-length 50 -set -g status-left-length 20 +set -g status-left-length 50 setw -g window-status-current-style 'fg=black bg=orange bold' setw -g window-status-current-format ' #I#[fg=black]:#[fg=black]#W#[fg=black]#F '