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
- periodically check network interfaces with
ifconfigcommand. When new VPN connection is established, usually new
tun0interface is created. This options generates no network traffic, therefore it can be executed often.
- 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.
Clone this repository to
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
- Go to applet's configuration and set debug level to 2.
- Remove applet and add it again to the panel.
- Try to reproduce the issue.
- Open ticket on github and provide the logs from
Flag icons used from http://www.famfamfam.com/lab/icons/flags/.
Following IP Services are called:
- http://ip-api.com/json - chosen service resolving ISP
Icon and IP:
Custom ISP icon:
- Simon Brown - maintenance
- Erik Zetterberg - IP and icon mode suggestion
- Mirko Hanker - help with the flags
Log In To Comment!