diff --git a/config/ags/config.js b/config/ags/config.js index 8891ecd3..14ebf785 100644 --- a/config/ags/config.js +++ b/config/ags/config.js @@ -122,7 +122,7 @@ function Volume() { function BatteryLabel() { - const value = battery.bind("percent"); + const value = battery.bind("precent").transform((v) => v.toFixed(0)); // const icon = battery.bind("percent").as(p => // `battery-level-${Math.floor(p / 10) * 10}-symbolic`) @@ -132,7 +132,7 @@ function BatteryLabel() { children: [ // Widget.Icon({ icon }), Widget.Label({ - label: value.toString(), + label: value, }), ], })