From 4814403bbf58794da3349f21e55746e50e68eab4 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 8 Apr 2020 22:01:51 -0400 Subject: pgrep junk removed and minor script changes --- .local/bin/statusbar/iplocate | 1 + 1 file changed, 1 insertion(+) (limited to '.local/bin/statusbar/iplocate') 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/;.*//" -- cgit v1.3.1