diff --git a/tmux.conf b/tmux.conf index dd9b354..357a344 100644 --- a/tmux.conf +++ b/tmux.conf @@ -120,8 +120,11 @@ setw -g status-left-style fg=colour240,bg=colour233 # Centre status style setw -g status-style fg=colour240,bg=colour233 -# Right status style -setw -g status-right "%a %d-%m-%y %H:%M " +# 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 "%a %d-%m-%y %H:%M "' setw -g status-right-style fg=white,bg=colour233 # Active window status style