diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index a9b62b1d..e6bff592 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -2707,7 +2707,9 @@ mouse-3: Switch to next unread buffer"))) (let* ((data (and battery-status-function (functionp battery-status-function) (funcall battery-status-function))) - (charging? (string-equal "AC" (cdr (assoc ?L data)))) + (status (cdr (assoc ?L data))) + (charging? (or (string-equal "AC" status) + (string-equal "on-line" status))) (percentage (car (read-from-string (or (cdr (assq ?p data)) "ERR")))) (valid-percentage? (and (numberp percentage) (>= percentage 0)