From acd8f70e600607be25d814ce64fbdbe0ca155553 Mon Sep 17 00:00:00 2001 From: Nulo Date: Sun, 31 Oct 2021 11:49:44 -0300 Subject: [PATCH] =?UTF-8?q?yambar:=20mostrar=20bater=C3=ADa=20a=C3=BAn=20e?= =?UTF-8?q?n=20"unknown"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/yambar/config.yml | 41 +++++++++++++++++---------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/.config/yambar/config.yml b/.config/yambar/config.yml index c94b682..0c94250 100644 --- a/.config/yambar/config.yml +++ b/.config/yambar/config.yml @@ -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"}