Fix macOS battery percentage display

This commit is contained in:
Kenneth Benzie 2021-02-16 21:34:17 +00:00
parent 91118d58ac
commit d977a447db

View File

@ -126,7 +126,7 @@ setw -g status-style fg=colour240,bg=colour233
# Right status style, show data and time (and battery percentage on macOS).
if '[ "`uname`" = "Darwin" ]' \
'setw -g status-right "↯#(pmset -g batt | grep --color=never -Eo "\\d+%%")\
'setw -g status-right "↯#(pmset -g batt | grep --color=never -Eo \"\\d+%%\")\
%a %d-%m-%y %H:%M "' \
'setw -g status-right "%a %d-%m-%y %H:%M "'
setw -g status-right-style fg=white,bg=colour233