mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
Only show 1 digit after decimal point for battry percentage
This commit is contained in:
parent
9eaf715666
commit
70fac17e32
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ const BarBattery = () => Box({
|
|||
Label({
|
||||
className: 'txt-smallie',
|
||||
setup: (self) => self.hook(Battery, label => {
|
||||
label.label = `${Battery.percent}%`;
|
||||
label.label = `${Battery.percent.toFixed(1)}%`;
|
||||
}),
|
||||
}),
|
||||
Overlay({
|
||||
|
|
|
|||
Loading…
Reference in a new issue