avoid conflict with locate

This commit is contained in:
Luke Smith 2019-04-23 10:43:23 -04:00
parent b38c14f2e7
commit 56d418e525

9
.scripts/statusbar/iplocate Executable file
View file

@ -0,0 +1,9 @@
#!/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/
ifinstalled "geoiplookup" || exit
addr="$(curl ifconfig.me 2>/dev/null)" || exit
grep "flag: " ~/.config/emoji | grep "$(geoiplookup $addr | sed 's/.*, //')" | sed "s/flag: //;s/;.*//"