tmux : fix cat stupid extra newline.

This commit is contained in:
Dmitry Voronin 2023-11-19 09:14:39 +03:00
parent d9e552a07b
commit 343e1d0b83

View file

@ -58,7 +58,7 @@ 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 '
set -g status-right '#[fg=black,bg=orange] #(cat /sys/class/power_supply/BAT*/capacity 2> /dev/null | /usr/bin/tr -d "\n" && 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 20