From 32c5a43d750827a264384721eb9e3d5a100f1a5a Mon Sep 17 00:00:00 2001 From: BluishHumility Date: Tue, 30 Jul 2024 22:09:31 -0400 Subject: [PATCH] feat(waybar): update network module Update network module to display bandwidth in Waybar, and move SSID or interface name/IP address information to the tooltip. It's a little more interesting to look at, and somewhat more relevant to have at a glance since the information changes dynamically. The separate config for `tun0` interface has been scrapped in favor of having one module which presents whichever interface is currently active. --- .config/waybar/config | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.config/waybar/config b/.config/waybar/config index 9042f59..1e1661b 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -65,18 +65,14 @@ }, "network": { - "interval": 5, - "format-wifi": " {essid} ({signalStrength}%)", // Icon: wifi - "format-ethernet": " {ifname}: {ipaddr}/{cidr}", // Icon: ethernet - "format-disconnected": "⚠ Disconnected", - "tooltip-format": "{ifname}: {ipaddr}", + "format-disabled": " Disabled ", + "format-wifi": " {bandwidthDownBits:>} 󰶡 {bandwidthUpBits:>} 󰶣 ", + "tooltip-format-wifi": "{essid}", + "format-ethernet": " {bandwidthDownBits:>} 󰶡 {bandwidthUpBits:>} 󰶣 ", + "tooltip-format-ethernet": "{ifname}: {ipaddr}/{cidr}", + "format-disconnected": " Disconnected ", "on-click": "footclient -T waybar_nmtui -e nmtui", - }, - "network#vpn": { - "interface": "tun0", - "format": " {essid} ({signalStrength}%)", - "format-disconnected": "⚠ Disconnected", - "tooltip-format": "{ifname}: {ipaddr}/{cidr}", + "interval": 2, }, "idle_inhibitor": {