Fix macOS battery percentage display

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

View File

@ -126,8 +126,8 @@ setw -g status-style fg=colour240,bg=colour233
# Right status style, show data and time (and battery percentage on macOS). # Right status style, show data and time (and battery percentage on macOS).
if '[ "`uname`" = "Darwin" ]' \ 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 "' \ %a %d-%m-%y %H:%M "' \
'setw -g status-right "%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 setw -g status-right-style fg=white,bg=colour233