0f6b418385
Add a module that displays the status of all NICs (interface name, list of IPs and state). In its status, it also exposes whether it's a WiFi or a wired NIC. For this functionality, additional code was implemented to allow a module to add multiple elements to the bar at once. The framework calls the module until its "next()" method return False.
85 lines
1.3 KiB
JSON
85 lines
1.3 KiB
JSON
{
|
|
"defaults": {
|
|
"prefix": " ",
|
|
"suffix" : " ",
|
|
"cycle": [
|
|
{
|
|
"fg": "#eee8d5",
|
|
"bg": "#586e75"
|
|
},
|
|
{
|
|
"fg": "#93a1a1",
|
|
"bg": "#002b36"
|
|
}
|
|
],
|
|
"fg-critical": "#002b36",
|
|
"bg-critical": "#dc322f",
|
|
"fg-warning": "#002b36",
|
|
"bg-warning": "#b58900",
|
|
|
|
"default_separators": false,
|
|
"separator": ""
|
|
},
|
|
"date": {
|
|
"prefix": " "
|
|
},
|
|
"time": {
|
|
"prefix": " "
|
|
},
|
|
"memory": {
|
|
"prefix": " "
|
|
},
|
|
"cpu": {
|
|
"prefix": " "
|
|
},
|
|
"nic": {
|
|
"states": {
|
|
"wireless-up": {
|
|
"prefix": " "
|
|
},
|
|
"wireless-down": {
|
|
"prefix": " "
|
|
},
|
|
"wired-up": {
|
|
"prefix": " "
|
|
},
|
|
"wired-down": {
|
|
"prefix": " "
|
|
}
|
|
}
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
"charged": {
|
|
"prefix": " ",
|
|
"suffix": " ",
|
|
"fg": "#002b36",
|
|
"bg": "#859900"
|
|
},
|
|
"charging": {
|
|
"prefix": [ " ", " ", " ", " ", " " ],
|
|
"suffix": " "
|
|
},
|
|
"discharging_critical": {
|
|
"prefix": " ",
|
|
"suffix": " "
|
|
},
|
|
"discharging_low": {
|
|
"prefix": " ",
|
|
"suffix": " "
|
|
},
|
|
"discharging_medium": {
|
|
"prefix": " ",
|
|
"suffix": " "
|
|
},
|
|
"discharging_high": {
|
|
"prefix": " ",
|
|
"suffix": " "
|
|
},
|
|
"discharging_full": {
|
|
"prefix": " ",
|
|
"suffix": " "
|
|
}
|
|
}
|
|
}
|
|
}
|