IP Indicator

UUID: ipindicator@matus.benko@gmail.com
Last edited:
3 months ago 2021-06-11, 01:30
Last commit: [b4351946] Ipindicator new flags (#3805)

Applet shows different icon for different public IP addresses. Useful when often using VPN.

README

Close

IP Indicator

IP indicator applet for Cinnamon desktop environment

Useful in case when often switching VPNs. It shows flag of country of your public IP or customized icon when matching ISP (Internet Service Provider) is found. After opening menu additionally IP, ISP and the country name are displayed.

Some ISPs have not very human friendly name, therefore there is options to set ISP nickname, which will be shown instead.

How it works

  1. periodically check network interfaces with ifconfig command. When new VPN connection is established, usually new tun0 interface is created. This options generates no network traffic, therefore it can be executed often.
  2. periodically call free IP Services. Several IP services are defined, through which the applet cycles and figures out only public IP. As this method generates load on these services, it should not be used very frequent, therefore the interval is possible be set in minute interval.

When any technique recognizes that something has changed, then another request is sent to chosen IP service. Response provides detailed information that is shown in the tooltip.

Installation

Clone this repository to .local/share/cinnamon/applets/

For parsing ifconfig output, external shell script is used: getNetworkInterfaces.sh. Make sure that this script has set permissions to be executable!

chmod 755 getNetworkInterfaces.sh

Troubleshooting

  1. Go to applet's configuration and set debug level to 2.
  2. Remove applet and add it again to the panel.
  3. Try to reproduce the issue.
  4. Open ticket on github and provide the logs from .cinnamon/glass.log.

Sources

Flag icons used from http://www.famfamfam.com/lab/icons/flags/.

Following IP Services are called:

Screenshots

IP:

ip

Icon:

icon

Icon and IP:

iconIp

Tooltip:

tooltip

Settings:

settings

Custom ISP icon:

isp

Kudos

  • Simon Brown - maintenance
  • Erik Zetterberg - IP and icon mode suggestion
  • Mirko Hanker - help with the flags

Log In To Comment!

3 Comments

Maciej Kalisz
Maciej Kalisz-3 months ago
Neat applet, can show in the panel either country flag, or IP address, or both. Just what I was looking for. Thanks.
Mirko1984
Mirko1984-1 year ago
A very good and useful theme if you`re using a VPN all the time (like I do). The only thing it would be even better is, if there would be more flags for smaller countries (like Jersey / Isle of Man). But this tool is so helpful! Thank you!!!
Aaron E
Aaron E-3 years ago
thanks