src/weather: Filter for only the wifi connection
1 files changed, 4 insertions(+), 1 deletions(-) M src/weather
M src/weather => src/weather +4-1
@@ 26,7 26,10 @@ locofzip() # different place. touch "$location_file" wifi="$(nmcli connection show --active | sed 1d | cut -d' ' -f1)" wifi="$(nmcli connection show --active | sed 1d | # Delete table header awk '$3 == "wifi"' | # Only list wifi connection; e.g. ignore VPN cut -d' ' -f1)" location="$(awk -v wifi="$wifi" '$1 == wifi { print $2 }' < "$location_file")"