Add auto-ethernet option (for liberation)
This commit is contained in:
parent
53c3e49256
commit
8b46d70319
3 changed files with 16 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
wireless = ["wlp170s0"]
|
||||
#ethernet = ["enp2s0"]
|
||||
auto_ethernet = true
|
||||
temperature_path = "/sys/class/hwmon/hwmon4/temp1_input"
|
||||
has_battery = true
|
||||
|
||||
|
|
|
@ -157,6 +157,7 @@ class HostConfig:
|
|||
base16_scheme: str = "seti"
|
||||
wireless: list[str] = field(factory=list)
|
||||
ethernet: list[str] = field(factory=list)
|
||||
auto_ethernet: bool = True
|
||||
disks: list[str] = field(factory=lambda: ["/"])
|
||||
has_battery: bool = False
|
||||
system_font: str = "Fira Sans"
|
||||
|
|
|
@ -16,6 +16,10 @@
|
|||
"network#${iface}",
|
||||
% endfor
|
||||
|
||||
% if not host.ethernet and host.auto_ethernet:
|
||||
"network#auto_ethernet",
|
||||
% endif
|
||||
|
||||
"wireplumber",
|
||||
"battery",
|
||||
"group/disks",
|
||||
|
@ -50,6 +54,16 @@
|
|||
},
|
||||
% endfor
|
||||
|
||||
% if not host.ethernet and host.auto_ethernet:
|
||||
"network#auto_ethernet": {
|
||||
"interface": "en*",
|
||||
"format": "\uf6ff \uf058",
|
||||
"format-disconnected": "\uf6ff \uf057",
|
||||
"tooltip-format": "${iface} {ipaddr}",
|
||||
"tooltip-format-disconnected": "${iface} down"
|
||||
},
|
||||
% endif
|
||||
|
||||
"wireplumber": {
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": "\uf6a9 {volume}%",
|
||||
|
|
Loading…
Add table
Reference in a new issue