statusbar scripts to master

This commit is contained in:
Luke Smith
2019-11-23 16:23:24 -05:00
parent a5e66ac4f4
commit 606946d890
16 changed files with 266 additions and 0 deletions

9
.local/bin/statusbar/iplocate Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env 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/;.*//"