woke agenda

This commit is contained in:
Sakooooo 2024-10-16 15:35:40 +04:00
parent 5dc2e47942
commit 4ac4ddcd44
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -174,7 +174,7 @@ function BatteryLabel() {
const percent = battery.bind("percent").as(x => x.toString()) + "%"; const percent = battery.bind("percent").as(x => x.toString()) + "%";
function getIcon() { function getIcon() {
const icon = [100, 50, 30, 10].find(threshold => threshold <= battery.percent); const icon = [80, 50, 30, 10].find(threshold => threshold <= battery.percent);
return `battery-${icons[icon]}-symbolic`; return `battery-${icons[icon]}-symbolic`;
} }