From 135cb20be49404d1ea778c56fb48657146af2651 Mon Sep 17 00:00:00 2001 From: Jas-SinghFSU Date: Mon, 1 Jul 2024 19:50:16 -0700 Subject: [PATCH] Add battery icon back --- modules/bar/battery/index.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/modules/bar/battery/index.js b/modules/bar/battery/index.js index caea477..763795e 100644 --- a/modules/bar/battery/index.js +++ b/modules/bar/battery/index.js @@ -17,12 +17,15 @@ const BatteryLabel = () => { class_name: "battery", visible: battery.bind("available"), children: [ - // Widget.Icon({ icon }), - Widget.LevelBar({ - widthRequest: 20, - vpack: "center", - value, - }), + Widget.Icon({ icon }), + Widget.Label({ + label: battery.bind("percent").as((p) => (`${p}%`)), + }) + // Widget.LevelBar({ + // widthRequest: 20, + // vpack: "center", + // value, + // }), ], }), isVis,