(config) ags: again

This commit is contained in:
Sakooooo 2024-10-16 14:42:50 +04:00
parent b8a424dfbe
commit f838661737
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -162,10 +162,10 @@ function Volume() {
function BatteryLabel() { function BatteryLabel() {
const icons = { const icons = {
75: "full", 80: "full",
50: "good", 50: "good",
25: "low", 30: "low",
0: "empty", 10: "empty",
}; };
const value = battery.bind("percent").as(p => p > 0 ? p / 100 : 0); const value = battery.bind("percent").as(p => p > 0 ? p / 100 : 0);
// const icon = battery.bind("percent").as(p => // const icon = battery.bind("percent").as(p =>