From 356a00429c4b08f0cd518008cf3e7a58cdc05d85 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 8 Aug 2024 13:45:59 +0400 Subject: [PATCH] ok --- config/ags/config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/ags/config.js b/config/ags/config.js index fad9cb52..ba1163ea 100644 --- a/config/ags/config.js +++ b/config/ags/config.js @@ -126,16 +126,16 @@ function BatteryLabel() { const icon = battery.bind("percent").as(p => `battery-level-${Math.floor(p / 10) * 10}-symbolic`) + const percent = battery.bind("percent").as(x = x.toString) + "%" + return Widget.Box({ class_name: "battery", visible: battery.bind("available"), children: [ Widget.Icon({ icon }), - Widget.LevelBar({ - widthRequest: 140, - vpack: "center", - value, - }), + Widget.Label({ + label: percent, + }) ], }) }