From 6e99499c1f13008581f9070206b71c0a51cdb28e Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 5 Dec 2022 18:30:35 +0530 Subject: initial commit --- wip | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 wip (limited to 'wip') diff --git a/wip b/wip new file mode 100755 index 0000000..dcc3ca3 --- /dev/null +++ b/wip @@ -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" -- cgit v1.2.3