🚀 combine eth and wlan module
This commit is contained in:
parent
5899f9d948
commit
ecedf91ec9
1 changed files with 6 additions and 11 deletions
|
@ -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%";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue