aboutsummaryrefslogtreecommitdiff
path: root/wip
blob: dcc3ca32ac9795c404a9b6c44c595cf733ac56fa (plain) (blame)
1
2
3
4
5
6
#!/bin/sh
# https://sinanmohd.com

current_ip=$(dig +short myip.opendns.com @208.67.222.222)
geo_loc_ip=$(geoiplookup  "$current_ip" | grep -v "Country" | sed 's/^.*: //g')
notify-send "   $current_ip" "$geo_loc_ip"