#!/bin/sh

type="${1:-wifi}"

nmcli -f type,name connection show --active \
  | grep "${type}" | sed "s/^${type} \\+//"
