diff options
| author | sinanmohd <pcmsinan@gmail.com> | 2022-12-05 18:30:35 +0530 |
|---|---|---|
| committer | sinanmohd <pcmsinan@gmail.com> | 2023-03-11 19:05:02 +0530 |
| commit | 6e99499c1f13008581f9070206b71c0a51cdb28e (patch) | |
| tree | 9b1be1ac30912793b1d233059f6f4ef9d1a5d1ef /wip | |
initial commit
Diffstat (limited to 'wip')
| -rwxr-xr-x | wip | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -0,0 +1,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" |
