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:
@@ -65,18 +65,14 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"network": {
|
"network": {
|
||||||
"interval": 5,
|
"format-disabled": " Disabled ",
|
||||||
"format-wifi": " {essid} ({signalStrength}%)", // Icon: wifi
|
"format-wifi": " {bandwidthDownBits:>} {bandwidthUpBits:>} ",
|
||||||
"format-ethernet": " {ifname}: {ipaddr}/{cidr}", // Icon: ethernet
|
"tooltip-format-wifi": "{essid}",
|
||||||
"format-disconnected": "⚠ Disconnected",
|
"format-ethernet": " {bandwidthDownBits:>} {bandwidthUpBits:>} ",
|
||||||
"tooltip-format": "{ifname}: {ipaddr}",
|
"tooltip-format-ethernet": "{ifname}: {ipaddr}/{cidr}",
|
||||||
|
"format-disconnected": " Disconnected ",
|
||||||
"on-click": "footclient -T waybar_nmtui -e nmtui",
|
"on-click": "footclient -T waybar_nmtui -e nmtui",
|
||||||
},
|
"interval": 2,
|
||||||
"network#vpn": {
|
|
||||||
"interface": "tun0",
|
|
||||||
"format": " {essid} ({signalStrength}%)",
|
|
||||||
"format-disconnected": "⚠ Disconnected",
|
|
||||||
"tooltip-format": "{ifname}: {ipaddr}/{cidr}",
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"idle_inhibitor": {
|
"idle_inhibitor": {
|
||||||
|
|||||||
Reference in New Issue
Block a user