forked from Shinonome/dots-hyprland
Only show 1 digit after decimal point for battry percentage
This commit is contained in:
@@ -99,7 +99,7 @@ const BarBattery = () => Box({
|
|||||||
Label({
|
Label({
|
||||||
className: 'txt-smallie',
|
className: 'txt-smallie',
|
||||||
setup: (self) => self.hook(Battery, label => {
|
setup: (self) => self.hook(Battery, label => {
|
||||||
label.label = `${Battery.percent}%`;
|
label.label = `${Battery.percent.toFixed(1)}%`;
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
Overlay({
|
Overlay({
|
||||||
|
|||||||
Reference in New Issue
Block a user