shervinsahba / polybar-vpn-controller

Polybar module for VPN control. Set up for Mullvad VPN but modifiable for others.
MIT License
62 stars 12 forks source link

create a --no-geoip switch for VPNs whose status includes the country #8

Closed shervinsahba closed 2 years ago

shervinsahba commented 3 years ago

The idea is that certain VPNs will report the country in their status call, negating the need for geoiplookup. See the TODO comment left by @sudo-julia in vpn_module.sh under this branch, which suggests using country_codes.py script to get the current country.

jamc-code commented 3 years ago

Hey! I think this should be really easy to integrate. The biggest thing is going to be finding what providers include the country in the status, because I only have access to Mullvad. One method that might work is digging through the polybar-scripts repository and reading the code that individual VPN modules use to display their status.

shervinsahba commented 2 years ago

Started to do this with the recent changes and vpn_module status <method> with being mullvad, other-vpn, geo-ip, and ip. The first two methods begin to address this. Will mark closed for now until specific methods are added for other VPNs.