modified the tmux status line to deal with multiple batteries.

This commit is contained in:
Gabe Venberg 2021-05-09 15:32:49 -05:00
parent 42e1f8dc37
commit 6f6f95a120

View file

@ -69,4 +69,4 @@ bind r source-file ~/.tmux.conf
#also lengthen the right side status, by mutch more. #also lengthen the right side status, by mutch more.
set -g status-right-length 60 set -g status-right-length 60
#have the right side status bar display the current battery status and the time/date. #have the right side status bar display the current battery status and the time/date.
set -g status-right 'battery:#(acpi | cut -d ',' -f 2) | %H:%M %d-%m-%y ' set -g status-right 'battery:#(acpi | grep -Eo "[0-9]+%" | tr "\n" " " | sed "s/\s\+$//") | %H:%M %d-%m-%y '