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.
This commit is contained in:
BluishHumility
2024-07-30 22:09:31 -04:00
parent 6e7f6ec4a3
commit 32c5a43d75

View File

@@ -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": {