avoid conflict with locate
This commit is contained in:
parent
b38c14f2e7
commit
56d418e525
1 changed files with 9 additions and 0 deletions
9
.scripts/statusbar/iplocate
Executable file
9
.scripts/statusbar/iplocate
Executable 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/;.*//"
|
Loading…
Reference in a new issue