Function: doom-modeline-battery-icon
doom-modeline-battery-icon is a natively compiled function defined in
doom-modeline-segments.el.
Signature
(doom-modeline-battery-icon ICON UNICODE TEXT FACE)
Documentation
Displays the battery ICON with FACE.
UNICODE and TEXT are fallbacks.
Uses nerd-icons-mdicon to fetch the icon.
Source Code
;; Defined in /nix/store/1lcicrdd2r4b8rkc91nnn74ymk1jl6yd-emacs-packages-deps/share/emacs/site-lisp/elpa/doom-modeline-20260928.1632/doom-modeline-segments.el
;;
;; Battery status
;;
(defun doom-modeline-battery-icon (icon unicode text face)
"Displays the battery ICON with FACE.
UNICODE and TEXT are fallbacks.
Uses `nerd-icons-mdicon' to fetch the icon."
(doom-modeline-icon 'mdicon icon unicode text :face face))