remove ws, fmt

This commit is contained in:
Damocles 2026-04-11 00:22:09 +02:00
parent 5316f40967
commit cd45c2d9cf
17 changed files with 96 additions and 97 deletions

View file

@ -26,9 +26,12 @@ Row {
const parts = line.split(":");
root.essid = parts[0] || "";
root.ifname = parts[2] || "";
if ((parts[1] || "").includes("wireless")) root.state = "wifi";
else if (parts[0] === "linked") root.state = "linked";
else root.state = "eth";
if ((parts[1] || "").includes("wireless"))
root.state = "wifi";
else if (parts[0] === "linked")
root.state = "linked";
else
root.state = "eth";
}
}
}
@ -41,9 +44,12 @@ Row {
Text {
text: {
if (root.state === "wifi") return " " + root.essid;
if (root.state === "eth") return "󰈀";
if (root.state === "linked") return "󱘖";
if (root.state === "wifi")
return " " + root.essid;
if (root.state === "eth")
return "󰈀";
if (root.state === "linked")
return "󱘖";
return "󰣽";
}
color: M.Theme.base05