mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Update battery thresholds.
This commit is contained in:
parent
266b3cae80
commit
8896f219e4
1 changed files with 3 additions and 5 deletions
|
@ -1683,8 +1683,6 @@ we don't want to remove that so we just return the original."
|
||||||
(charging? 'fancy-battery-charging)
|
(charging? 'fancy-battery-charging)
|
||||||
((< percentage-number 10) 'fancy-battery-critical)
|
((< percentage-number 10) 'fancy-battery-critical)
|
||||||
((< percentage-number 25) 'fancy-battery-discharging)
|
((< percentage-number 25) 'fancy-battery-discharging)
|
||||||
((< percentage-number 50) 'mode-line)
|
|
||||||
((< percentage-number 75) 'mode-line)
|
|
||||||
((< percentage-number 95) 'mode-line)
|
((< percentage-number 95) 'mode-line)
|
||||||
(t 'fancy-battery-charging)))
|
(t 'fancy-battery-charging)))
|
||||||
(icon (cond
|
(icon (cond
|
||||||
|
@ -1696,15 +1694,15 @@ we don't want to remove that so we just return the original."
|
||||||
(if doom-modeline-icon
|
(if doom-modeline-icon
|
||||||
(doom-modeline-icon-faicon "battery-full" :height 1.1 :v-adjust -0.0575 :face face)
|
(doom-modeline-icon-faicon "battery-full" :height 1.1 :v-adjust -0.0575 :face face)
|
||||||
(propertize "-" 'face face)))
|
(propertize "-" 'face face)))
|
||||||
((> percentage-number 75)
|
((> percentage-number 50)
|
||||||
(if doom-modeline-icon
|
(if doom-modeline-icon
|
||||||
(doom-modeline-icon-faicon "battery-three-quarters" :height 1.1 :v-adjust -0.0575 :face face)
|
(doom-modeline-icon-faicon "battery-three-quarters" :height 1.1 :v-adjust -0.0575 :face face)
|
||||||
(propertize "-" 'face face)))
|
(propertize "-" 'face face)))
|
||||||
((> percentage-number 50)
|
((> percentage-number 30)
|
||||||
(if doom-modeline-icon
|
(if doom-modeline-icon
|
||||||
(doom-modeline-icon-faicon "battery-half" :height 1.1 :v-adjust -0.0575 :face face)
|
(doom-modeline-icon-faicon "battery-half" :height 1.1 :v-adjust -0.0575 :face face)
|
||||||
(propertize "-" 'face face)))
|
(propertize "-" 'face face)))
|
||||||
((> percentage-number 25)
|
((> percentage-number 15)
|
||||||
(if doom-modeline-icon
|
(if doom-modeline-icon
|
||||||
(doom-modeline-icon-faicon "battery-quarter" :height 1.1 :v-adjust -0.0575 :face face)
|
(doom-modeline-icon-faicon "battery-quarter" :height 1.1 :v-adjust -0.0575 :face face)
|
||||||
(propertize "-" 'face face)))
|
(propertize "-" 'face face)))
|
||||||
|
|
Loading…
Reference in a new issue