diff options
| author | Dennis Lee <dennis@dennislee.xyz> | 2020-04-04 13:00:08 -0700 |
|---|---|---|
| committer | Dennis Lee <dennis@dennislee.xyz> | 2020-04-04 13:00:08 -0700 |
| commit | a29eaec506a7ce9e42d64a3ec1d17690387def30 (patch) | |
| tree | 17c939a9991773af7ab91325125e47f001613e22 /.local/bin/statusbar/iplocate | |
| parent | 82cf021b78d235ca98df61d4ce55d4c0969c2e5f (diff) | |
| download | eibhear-a29eaec506a7ce9e42d64a3ec1d17690387def30.tar.gz eibhear-a29eaec506a7ce9e42d64a3ec1d17690387def30.tar.zst eibhear-a29eaec506a7ce9e42d64a3ec1d17690387def30.zip | |
substitute ~/.config with $XDG_CONFIG_HOME
Diffstat (limited to '.local/bin/statusbar/iplocate')
| -rwxr-xr-x | .local/bin/statusbar/iplocate | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/iplocate b/.local/bin/statusbar/iplocate index 4ca4f10..6d1038c 100755 --- a/.local/bin/statusbar/iplocate +++ b/.local/bin/statusbar/iplocate @@ -6,4 +6,4 @@ # 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/;.*//" +grep "flag: " $XDG_CONFIG_HOME/emoji | grep "$(geoiplookup $addr | sed 's/.*, //')" | sed "s/flag: //;s/;.*//" |
