You are not logged in.
I am using waybar and have enabled the network module. However, it displays the internal IP address and this is of no use to me because I use DHCP reservation from my router, so my desktop always has the same IP. I'd rather have it display the external IP address so that if the VPN goes down and it starts displaying my ISP IP address, I would know that there is an issue with the VPN and take steps accordingly.
How can I tell the network module to run a bash alias and display the output? I do have an alias for
curl -s icanhazip.com
Or does the waybar network module not support this and I must have a different custom module to do what I want?
Last edited by Inxsible (2022-01-12 05:26:58)
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Is this possible ?
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
I added a really simple custom module
"custom/vpn": {
"format": "{}",
"exec": "curl -s www.icanhazip.com",
"interval": 30
}
This now shows my external ip so I can immediately find out if the VPN connection has gone down.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline