mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
14 lines
463 B
Bash
Executable File
14 lines
463 B
Bash
Executable File
#!/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
|