From 2c7d2c04c6bf2700722ff295fdd5ce674a9d1865 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 21 Dec 2022 09:19:04 -0600 Subject: [PATCH] adding conditional battery in bar --- eww/eww.scss | 4 ++-- eww/eww.yuck | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eww/eww.scss b/eww/eww.scss index 67219c1..aaa204d 100644 --- a/eww/eww.scss +++ b/eww/eww.scss @@ -203,13 +203,13 @@ tooltip label { .mem_module { background-color: rgba(00, 00, 00, 0.0); border-radius: 16px; - margin: 0px 0px 0px 5px; + margin: 0px 5px 0px 0px; } .bat_module { background-color: rgba(00, 00, 00, 0.0); border-radius: 16px; - margin: 0px 5px 0px 0px; + margin: 0px 0px 0px 5px; } .cpu_module { diff --git a/eww/eww.yuck b/eww/eww.yuck index 72e4845..226be01 100644 --- a/eww/eww.yuck +++ b/eww/eww.yuck @@ -261,9 +261,9 @@ (volume) (wifi) (sep) - (bat) (cpu) (mem) + (EWW_BATTERY["BAT1"].capacity ? (bat) : ()) (sep) (notif_button)))