From ace4b3c80580f490f01415d4cf801f6c2f8c002b Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Fri, 19 Apr 2024 23:16:55 +0200 Subject: [PATCH] Add network widget to waybar --- modules/home/de/waybar.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/modules/home/de/waybar.nix b/modules/home/de/waybar.nix index ca6ddd0..2e57d9f 100644 --- a/modules/home/de/waybar.nix +++ b/modules/home/de/waybar.nix @@ -19,7 +19,7 @@ modules-left = ["clock"]; modules-center = ["hyprland/workspaces"]; - modules-right = ["tray" "wireplumber" "backlight" "battery"]; + modules-right = ["tray" "network" "wireplumber" "backlight" "battery"]; "hyprland/workspaces" = { active-only = false; @@ -31,6 +31,21 @@ tooltip-format = "{:%d.%m.%Y}"; }; + network = { + interval = 10; + format = ""; + + format-wifi = "{icon}"; + format-icons = ["󰤟" "󰤢" "󰤥" "󰤨"]; + tooltip-format-wifi = "{essid} 󰇚 {bandwidthDownBits} 󰕒 {bandwidthUpBits}"; + + format-ethernet = "󰌗"; + tooltip-format-ethernet = "󰇚 {bandwidthDownBits} 󰕒 {bandwidthUpBits}"; + + format-disconnected = "󰪎"; + tooltip-format-disconnected = "Disconnected"; + }; + wireplumber = { format = "{icon} {volume}%"; format-muted = "󰝟";