#!/bin/sh # Gets your public ip address checks which country you are in and # displays that information in the statusbar # # https://www.maketecheasier.com/ip-address-geolocation-lookups-linux/ # To get the flag-emojis file: # # curl https://samerickson.me/files/flag-emojis > ~/.local/share/flag-emojis # ifinstalled "geoiplookup" || exit addr="$(curl ifconfig.me 2>/dev/null)" || exit grep "$(geoiplookup "$addr" | sed 's/.*, //')" ~/.local/share/flag-emojis