From 1d2a5f249ddd806787f8790467fb17b6250b39d8 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 16 Feb 2021 21:34:17 +0000 Subject: [PATCH] Fix macOS battery percentage display --- tmux.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmux.conf b/tmux.conf index 774d974..6140079 100644 --- a/tmux.conf +++ b/tmux.conf @@ -126,8 +126,8 @@ 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+%%")\ - %a %d-%m-%y %H:%M "' \ + '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