diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-25 16:47:16 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-25 16:47:16 +0530 |
| commit | 550cadaf45165ccbc3dbe050a45d0d041c2c221d (patch) | |
| tree | d7e67f48b4ff7a1a488f9532ea479cedf8e398ad /modules/desktop/waybar/module/network.nix | |
| parent | e400c0037a6f076d53c2c88cc9e43e934d4e2edb (diff) | |
| download | home-manager-config-550cadaf45165ccbc3dbe050a45d0d041c2c221d.tar.gz home-manager-config-550cadaf45165ccbc3dbe050a45d0d041c2c221d.zip | |
feat(waybar): add bandwidth stats, tooltips, spacing consistency, and workspace list fix
- Add spacing between icon and text across all waybar modules for consistency
- Add bandwidth download/upload indicators to network module
- Add tooltip-format to date (weekday) and time (seconds) modules
- Replace persistent-workspaces integer with table syntax, remove on-click
Diffstat (limited to 'modules/desktop/waybar/module/network.nix')
| -rw-r--r-- | modules/desktop/waybar/module/network.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/desktop/waybar/module/network.nix b/modules/desktop/waybar/module/network.nix index 4e14d69..514d54e 100644 --- a/modules/desktop/waybar/module/network.nix +++ b/modules/desktop/waybar/module/network.nix @@ -1,13 +1,17 @@ { config, iconColor }: with config.scheme.withHashtag; { - format-wifi = "<span foreground='${iconColor}'>{icon}</span> {signalStrength}%"; - format-ethernet = "<span foreground='${iconColor}'></span> {ipaddr}"; - format-disconnected = ""; + interval = 2; + + format-wifi = "<span foreground='${iconColor}'>{icon}</span> {bandwidthDownBytes} {bandwidthUpBytes}"; + format-ethernet = "<span foreground='${iconColor}'></span> {bandwidthDownBytes} {bandwidthUpBytes}"; + format-disconnected = "<span foreground='${iconColor}'></span> Disconnected"; + tooltip-format = "{ifname}"; tooltip-format-wifi = "{essid} ({signalStrength}%)"; tooltip-format-ethernet = "Wired: {ipaddr}"; tooltip-format-disconnected = "Disconnected"; + format-icons = [ "" "" |
