From f2a0993bfdddf41c6d4f6206bd29f8544b6da9f7 Mon Sep 17 00:00:00 2001 From: sefidel Date: Fri, 15 Sep 2023 16:16:08 +0900 Subject: feat(home/gui): waybar: add network module --- home/profiles/gui/config/waybar/settings.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'home/profiles/gui/config/waybar') diff --git a/home/profiles/gui/config/waybar/settings.nix b/home/profiles/gui/config/waybar/settings.nix index 86e865a..83b5cf7 100644 --- a/home/profiles/gui/config/waybar/settings.nix +++ b/home/profiles/gui/config/waybar/settings.nix @@ -7,7 +7,7 @@ with neotheme.colors; height = 22; modules-left = [ "pulseaudio" "custom/separator" "cpu" "custom/separator" "memory" "custom/separator" "idle_inhibitor" ]; modules-center = [ "sway/workspaces" ]; - modules-right = [ "battery" "custom/separator" "clock" ]; + modules-right = [ "network" "custom/separator" "battery" "custom/separator" "clock" ]; "sway/workspaces" = { all-outputs = true; @@ -52,6 +52,17 @@ with neotheme.colors; format-alt = "PWR {power}Wh"; }; + "network" = { + format = "NET {ifname}"; + format-wifi = "NET {essid} [{signalStrength}]"; + format-ethernet = "NET [ethernet]"; + format-disconnected = "NET disconnected"; + tooltip-format = "{ifname} via {gwaddr}"; + tooltip-format-wifi = "{ipaddr}/{cidr} via {essid} ({signaldBm}dBm)"; + tooltip-format-ethernet = "{ipaddr}/{cidr} via Ethernet"; + tooltip-format-disconnected = "{ifname} Disconnected"; + }; + "idle_inhibitor" = { format = "CAFFEINE {status}"; }; -- cgit 1.4.1