#!/bin/sh

LANG=C nmcli d show | awk '($1 == ""){ device = 0 } ($1=="GENERAL.DEVICE:"){ device=$2 } ($1=="GENERAL.TYPE:" && $2 == "wifi"){ print device }'
