summaryrefslogtreecommitdiffstats
path: root/.local/bin/statusbar/iplocate
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-04-08 17:21:40 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-04-08 17:21:40 -0400
commit422d106fbab5505f3810fa845f4f71547c7a4332 (patch)
treef6a04c7eabbad04e7c11b3da8e683e69b9df5da2 /.local/bin/statusbar/iplocate
parent2c06dd36c61dea7383d2a12900eb83ee1751115a (diff)
downloadeibhear-422d106fbab5505f3810fa845f4f71547c7a4332.tar.gz
eibhear-422d106fbab5505f3810fa845f4f71547c7a4332.tar.zst
eibhear-422d106fbab5505f3810fa845f4f71547c7a4332.zip
assume default values if xdg dirs not set
Diffstat (limited to '.local/bin/statusbar/iplocate')
-rwxr-xr-x.local/bin/statusbar/iplocate2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/iplocate b/.local/bin/statusbar/iplocate
index 6d1038c..2f1b08b 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: " $XDG_CONFIG_HOME/emoji | grep "$(geoiplookup $addr | sed 's/.*, //')" | sed "s/flag: //;s/;.*//"
+grep "flag: " ${XDG_CONFIG_HOME:$HOME/.config}/emoji | grep "$(geoiplookup $addr | sed 's/.*, //')" | sed "s/flag: //;s/;.*//"