aboutsummaryrefslogtreecommitdiff
path: root/.config/eww/scripts
diff options
context:
space:
mode:
Diffstat (limited to '.config/eww/scripts')
-rwxr-xr-x.config/eww/scripts/network.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/eww/scripts/network.sh b/.config/eww/scripts/network.sh
index cceebd7..e4f36fa 100755
--- a/.config/eww/scripts/network.sh
+++ b/.config/eww/scripts/network.sh
@@ -14,11 +14,11 @@
function ShowInfo {
if [ "$(nmcli connection show --active | grep -oh "\w*ethernet\w*")" == "ethernet" ]; then
- wan="$(dig +short myip.opendns.com @resolver1.opendns.com)"
+ wan="$(dig @resolver4.opendns.com myip.opendns.com +short)"
connection="$(nmcli connection show --active | grep 'ethernet' | awk '{ print $6 }' FS=' '): $(nmcli connection show --active | grep 'ethernet' | awk '{ print $1 }' FS=' ') - $(nmcli -t -f IP4.ADDRESS dev show $(nmcli connection show --active | grep 'ethernet' | awk '{ print $6 }' FS=' ') | awk '{print $2}' FS='[:/]')
WAN IP: $wan"
elif [ "$(nmcli connection show --active | grep -oh "\w*wifi\w*")" == "wifi" ]; then
- wan="$(dig +short myip.opendns.com @resolver1.opendns.com)"
+ wan="$(dig @resolver4.opendns.com myip.opendns.com +short)"
connection="$(nmcli connection show --active | grep 'wifi' | awk '{ print $4 }' FS=' '): $(nmcli connection show --active | grep 'wifi' | awk '{ print $1 }' FS=' ') - $(nmcli -t -f IP4.ADDRESS dev show $(nmcli connection show --active | grep 'wifi' | awk '{ print $4 }' FS=' ') | awk '{print $2}' FS='[:/]')
WAN IP: $wan"
else