diff --git a/config/ags/config.js b/config/ags/config.js index 808a8b1f..b55ce1aa 100644 --- a/config/ags/config.js +++ b/config/ags/config.js @@ -122,12 +122,10 @@ function Volume() { function BatteryLabel() { - const value = battery.bind("percent").as(p => p > 0 ? p / 100 : 0) + const value = battery.percent(); // const icon = battery.bind("percent").as(p => // `battery-level-${Math.floor(p / 10) * 10}-symbolic`) - console.log(value); - return Widget.Box({ class_name: "battery", visible: battery.bind("available"),