mod: show public ip in waybar

on click to show
This commit is contained in:
2026-10-11 23:10:30 -04:00
parent 744b773657
commit 1e47ff812b
4 changed files with 62 additions and 8 deletions
+6 -6
View File
@@ -2,7 +2,7 @@
"layer": "top",
"modules-left": ["sway/workspaces"],
"modules-center": ["clock"],
"modules-right": ["custom/playerctl", "custom/weather", "pulseaudio", "network", "tray"],
"modules-right": ["custom/playerctl", "custom/weather", "pulseaudio", "custom/network", "tray"],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": true,
@@ -34,11 +34,11 @@
"exec": "wttrbar --fahrenheit --main-indicator 'temp_F' --location 'Grand Rapids'",
"return-type": "json"
},
"network": {
"format-wifi": " {essid} ({signalStrength}%)",
"format-ethernet": " {ipaddr}",
"format-disconnected": "⚠ Disconnected",
"family": "ipv4",
"custom/network": {
"format": "{text}",
"return-type": "json",
"exec": "bash $HOME/.config/waybar/network.sh",
"on-click": "bash $HOME/.config/waybar/network.sh toggle",
"interval": 5,
"tooltip": false
},