Tmux : Show attached clients count.

This commit is contained in:
Dmitry Voronin 2024-01-04 18:36:24 +03:00
parent d3047d5dcc
commit 8633369a8d

View file

@ -70,10 +70,10 @@ set -g window-size smallest
set -g status-position bottom set -g status-position bottom
set -g status-justify left set -g status-justify left
set -g status-style 'bg=yellow fg=black dim' 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 '#[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-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-style 'fg=black bg=orange bold'
setw -g window-status-current-format ' #I#[fg=black]:#[fg=black]#W#[fg=black]#F ' setw -g window-status-current-format ' #I#[fg=black]:#[fg=black]#W#[fg=black]#F '