#!/bin/bash h=$(nmcli radio wifi) [ $h == "enabled" ] && nmcli radio wifi off || nmcli radio wifi on