🚀 combine eth and wlan module

This commit is contained in:
Moritz Böhme 2022-02-21 17:43:31 +01:00
parent 5899f9d948
commit ecedf91ec9
No known key found for this signature in database
GPG key ID: 213820E2795F5CF5

View file

@ -48,7 +48,7 @@
font-0 = "FiraCode Nerd Font:size=10;0"; font-0 = "FiraCode Nerd Font:size=10;0";
modules-left = "cpu memory wlan eth battery"; modules-left = "cpu memory network battery";
modules-center = "bspwm"; modules-center = "bspwm";
modules-right = "pulseaudio date"; modules-right = "pulseaudio date";
@ -169,19 +169,14 @@
click-middle = "${pkgs.pavucontrol}/bin/pavucontrol"; click-middle = "${pkgs.pavucontrol}/bin/pavucontrol";
}; };
"module/eth" = { "module/network" = {
type = "internal/network"; type = "internal/network";
interface = "enp42s0"; interface =
builtins.head (builtins.attrNames config.networking.interfaces);
interval = 3; interval = 3;
format-connected = "<label-connected>"; format-connected = "<label-connected>";
label-connected = " %upspeed% %downspeed%"; label-connected =
}; "%{F${colors.purple}}%{F-} %upspeed% %{F${colors.pink}}%{F-} %downspeed%";
"module/wlan" = {
type = "internal/network";
interface = "wlp1s0";
interval = 3;
format-connected = "<label-connected>";
label-connected = " %upspeed% %downspeed%";
}; };
}; };
}; };