example: battery: map ‘unknown’ to ‘discharging’

Related to #123
This commit is contained in:
Daniel Eklöf 2021-10-30 18:45:43 +02:00
parent 66ec7a85a1
commit 8324112504
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -248,11 +248,10 @@ bar:
- battery:
name: BAT0
poll-interval: 30
content:
map:
tag: state
values:
discharging:
anchors:
discharging: &discharging
list:
items:
- ramp:
tag: capacity
items:
@ -267,6 +266,14 @@ bar:
- string: {text: , font: *awesome}
- string: {text: , foreground: 00ff00ff, font: *awesome}
- string: {text: "{capacity}% {estimate}"}
content:
map:
tag: state
values:
unknown:
<<: *discharging
discharging:
<<: *discharging
charging:
- string: {text: , foreground: 00ff00ff, font: *awesome}
- string: {text: "{capacity}% {estimate}"}