diff --git a/home-manager/polybar.nix b/home-manager/polybar.nix index f47f0b0..774f8e6 100755 --- a/home-manager/polybar.nix +++ b/home-manager/polybar.nix @@ -78,7 +78,7 @@ "bar/right" = { width = "180px"; offset.x = 1720; - modules.center = "tray pulseaudio network battery powermenu"; + modules.center = "tray pulseaudio network-wireless network-wired battery powermenu"; height = "20pt"; radius = 6; fixed.center = false; @@ -205,7 +205,7 @@ background = "\${colors.background}"; }; }; - "module/network" = { + "module/network-wireless" = { type = "internal/network"; interface.type = "wireless"; interval = "3.0"; @@ -217,10 +217,8 @@ disconnected = "\"%{A1:networkmanager_dmenu:}%{A}\""; }; label.disconnected = { - text = "󰤭"; - foreground = "\${colors.alert}"; - background = "\${colors.background}"; - padding = 1; + text = ""; + padding = 0; }; ramp.signal = { text = ["󰤯" "󰤟" "󰤢" "󰤥" "󰤨"]; @@ -229,6 +227,27 @@ padding = 1; }; }; + "module/network-wired" = { + type = "internal/network"; + interface.type = "wired"; + interval = "3.0"; + udspeed.minwidth = 5; + accumulate.stats = true; + unknown.as.up = true; + format = { + connected = "\"%{A1:networkmanager_dmenu:}%{A}\""; + disconnected = "\"%{A1:networkmanager_dmenu:}%{A}\""; + }; + label.connected = { + text = ""; + foreground = "\${colors.foreground}"; + background = "\${colors.background}"; + padding = 1; + }; + label.disconnected = { + text = ""; + }; + }; "module/powermenu" = { type = "custom/text"; content = { @@ -243,8 +262,8 @@ type = "internal/battery"; full.at = 100; low.at = 20; - battery = "BAT0"; - adapter = "ACAD"; +# battery = "BAT0"; +# adapter = "ACAD"; poll.interval = 5; format = { charging = "\"%{A1:xfce4-power-menu -c:}%{A}\"";