#!/bin/bash
stat=`nmcli r w`
choice=`printf "on\noff" | dmenu -i -p "Wifi $stat"`
if [ -z "$choice" ]; then exit;fi
nmcli r w $choice