diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-08-03 09:45:07 +0100 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-08-03 09:45:07 +0100 |
commit | bcd3ec619ee5819ad5a0196717c4a9726e13b5c3 (patch) | |
tree | c347985b887b499e908426321fb01a5a91f3a843 /.config/eww/scripts/network.sh | |
parent | d14deda73170850b88eca10ff3535c6e90a254db (diff) |
Removed - from notification output
Diffstat (limited to '.config/eww/scripts/network.sh')
-rwxr-xr-x | .config/eww/scripts/network.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/eww/scripts/network.sh b/.config/eww/scripts/network.sh index 7e6cd25..f780d5b 100755 --- a/.config/eww/scripts/network.sh +++ b/.config/eww/scripts/network.sh @@ -15,7 +15,7 @@ function ShowInfo { if [ "$(nmcli connection show --active | grep -oh "\w*ethernet\w*")" == "ethernet" ]; then 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='[:/]') + 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 @resolver4.opendns.com myip.opendns.com +short)" |