🚀 combine eth and wlan module

dev-docs
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
1 changed files with 6 additions and 11 deletions

View File

@ -48,7 +48,7 @@
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-right = "pulseaudio date";
@ -169,19 +169,14 @@
click-middle = "${pkgs.pavucontrol}/bin/pavucontrol";
};
"module/eth" = {
"module/network" = {
type = "internal/network";
interface = "enp42s0";
interface =
builtins.head (builtins.attrNames config.networking.interfaces);
interval = 3;
format-connected = "<label-connected>";
label-connected = " %upspeed% %downspeed%";
};
"module/wlan" = {
type = "internal/network";
interface = "wlp1s0";
interval = 3;
format-connected = "<label-connected>";
label-connected = " %upspeed% %downspeed%";
label-connected =
"%{F${colors.purple}}%{F-} %upspeed% %{F${colors.pink}}%{F-} %downspeed%";
};
};
};