You are not logged in.

#1 2021-12-01 04:22:19

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,157

[SOLVED]Waybar network module -- display external IP

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)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#2 2021-12-11 22:11:51

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,157

Re: [SOLVED]Waybar network module -- display external IP

Is this possible ?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2022-01-12 05:26:39

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,157

Re: [SOLVED]Waybar network module -- display external IP

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.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB