statusbar scripts to master

This commit is contained in:
Luke Smith committed 2019-11-23 16:23:24 -05:00
1 parent a5e66ac4f4
commit 606946d890
16 files changed
+266

No files matched your search

+9
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/;.*//"