yambar: mostrar batería aún en "unknown"

This commit is contained in:
Cat /dev/Nulo 2021-10-31 11:49:44 -03:00
parent 90be0c11e9
commit acd8f70e60

View file

@ -120,6 +120,21 @@ bar:
- battery:
name: BAT0
poll-interval: 30
anchors:
charging: &charging
list:
items:
- ramp:
tag: capacity
items:
- string: {text: , foreground: *accent, font: *nerd}
- string: {text: , foreground: *accent, font: *nerd}
- string: {text: , font: *nerd}
- string: {text: , font: *nerd}
- string: {text: , font: *nerd}
- string: {text: , font: *nerd}
- string: {text: , font: *nerd}
- string: {text: " {capacity}%"}
content:
map:
tag: state
@ -140,30 +155,10 @@ bar:
- string: {text: , font: *nerd}
- string: {text: , foreground: *accent, font: *nerd}
- string: {text: " {capacity}%"}
charging:
- ramp:
tag: capacity
items:
- string: {text: , foreground: *accent, font: *nerd}
- string: {text: , foreground: *accent, font: *nerd}
- string: {text: , font: *nerd}
- string: {text: , font: *nerd}
- string: {text: , font: *nerd}
- string: {text: , font: *nerd}
- string: {text: , font: *nerd}
- string: {text: " {capacity}%"}
unknown:
- ramp:
tag: capacity
items:
- string: {text: , foreground: *accent, font: *nerd}
- string: {text: , foreground: *accent, font: *nerd}
- string: {text: , font: *nerd}
- string: {text: , font: *nerd}
- string: {text: , font: *nerd}
- string: {text: , font: *nerd}
- string: {text: , font: *nerd}
- string: {text: " {capacity}%"}
<<: *charging
charging:
<<: *charging
full:
- string: {text: , foreground: *accent, font: *nerd}
- string: {text: " {capacity}% full"}