From f15c364aefd2960bf7f94008a7b2e20fc2d118c4 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 17 Feb 2024 09:36:05 +0000 Subject: [PATCH] Add automatic battery display in modeline on laptops/anything with a battery --- config/ui.org | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/ui.org b/config/ui.org index 05a5a7a..843c0ca 100644 --- a/config/ui.org +++ b/config/ui.org @@ -202,6 +202,11 @@ (setq mode-line-compact 'long) #+end_src +** Battery state for laptops +#+begin_src emacs-lisp + (when (battery-upower) + (display-battery-mode +1)) +#+end_src * Zone #+begin_src emacs-lisp :tangle yes (use-package zone @@ -224,4 +229,3 @@ (diff-hl-disable-on-remote t) (diff-hl-draw-borders nil)) #+end_src -