From 832411250433fe73acdec0b09d9654c8725b729a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 30 Oct 2021 18:45:43 +0200 Subject: [PATCH] =?UTF-8?q?example:=20battery:=20map=20=E2=80=98unknown?= =?UTF-8?q?=E2=80=99=20to=20=E2=80=98discharging=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Related to #123 --- examples/configurations/laptop.conf | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/examples/configurations/laptop.conf b/examples/configurations/laptop.conf index 19d0bb4..3a6c439 100644 --- a/examples/configurations/laptop.conf +++ b/examples/configurations/laptop.conf @@ -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}"}