diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-04-08 22:01:51 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-04-08 22:01:51 -0400 |
| commit | 4814403bbf58794da3349f21e55746e50e68eab4 (patch) | |
| tree | 3bc52b7cd8eefc02d9d74e1442e7a979507b460d /.local/bin/statusbar/iplocate | |
| parent | 3e8f5c1647e15586b7ec09f9c415b3a50f49e6ac (diff) | |
| download | eibhear-4814403bbf58794da3349f21e55746e50e68eab4.tar.gz eibhear-4814403bbf58794da3349f21e55746e50e68eab4.tar.zst eibhear-4814403bbf58794da3349f21e55746e50e68eab4.zip | |
pgrep junk removed and minor script changes
Diffstat (limited to '.local/bin/statusbar/iplocate')
| -rwxr-xr-x | .local/bin/statusbar/iplocate | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.local/bin/statusbar/iplocate b/.local/bin/statusbar/iplocate index 1dddb7c..8dc6290 100755 --- a/.local/bin/statusbar/iplocate +++ b/.local/bin/statusbar/iplocate @@ -4,6 +4,7 @@ # 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: " ${XDG_CONFIG_HOME:-$HOME/.config}/emoji | grep "$(geoiplookup $addr | sed 's/.*, //')" | sed "s/flag: //;s/;.*//" |
