From 8896f219e40ad95768494c55502fecea0c0a8d34 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Fri, 1 Mar 2019 03:38:06 +0700 Subject: [PATCH] Update battery thresholds. --- doom-modeline-segments.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index ae95672..49dd9c4 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1683,8 +1683,6 @@ we don't want to remove that so we just return the original." (charging? 'fancy-battery-charging) ((< percentage-number 10) 'fancy-battery-critical) ((< percentage-number 25) 'fancy-battery-discharging) - ((< percentage-number 50) 'mode-line) - ((< percentage-number 75) 'mode-line) ((< percentage-number 95) 'mode-line) (t 'fancy-battery-charging))) (icon (cond @@ -1696,15 +1694,15 @@ we don't want to remove that so we just return the original." (if doom-modeline-icon (doom-modeline-icon-faicon "battery-full" :height 1.1 :v-adjust -0.0575 :face face) (propertize "-" 'face face))) - ((> percentage-number 75) + ((> percentage-number 50) (if doom-modeline-icon (doom-modeline-icon-faicon "battery-three-quarters" :height 1.1 :v-adjust -0.0575 :face face) (propertize "-" 'face face))) - ((> percentage-number 50) + ((> percentage-number 30) (if doom-modeline-icon (doom-modeline-icon-faicon "battery-half" :height 1.1 :v-adjust -0.0575 :face face) (propertize "-" 'face face))) - ((> percentage-number 25) + ((> percentage-number 15) (if doom-modeline-icon (doom-modeline-icon-faicon "battery-quarter" :height 1.1 :v-adjust -0.0575 :face face) (propertize "-" 'face face)))