diff --git a/modules/bar/battery/index.ts b/modules/bar/battery/index.ts index 977a2a8..86dbbb3 100644 --- a/modules/bar/battery/index.ts +++ b/modules/bar/battery/index.ts @@ -49,7 +49,7 @@ const BatteryLabel = () => { return [ Widget.Icon({ icon: icon() }), Widget.Label({ - label: battery.bind("percent").as((p) => ` ${p}%`), + label: battery.bind("percent").as((p) => ` ${Math.floor(p)}%`), }), ]; } else if (batAvail && !showLabel) {