From 70fac17e3259150e9ec727e1f84e1d472d71765d Mon Sep 17 00:00:00 2001 From: Cyao <94928179+cheyao@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:59:58 +0200 Subject: [PATCH] Only show 1 digit after decimal point for battry percentage --- .config/ags/modules/bar/normal/system.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/ags/modules/bar/normal/system.js b/.config/ags/modules/bar/normal/system.js index e97374f1..6ae0676b 100644 --- a/.config/ags/modules/bar/normal/system.js +++ b/.config/ags/modules/bar/normal/system.js @@ -99,7 +99,7 @@ const BarBattery = () => Box({ Label({ className: 'txt-smallie', setup: (self) => self.hook(Battery, label => { - label.label = `${Battery.percent}%`; + label.label = `${Battery.percent.toFixed(1)}%`; }), }), Overlay({