#!/bin/sh if [[ "$(nmcli radio wifi)" = "enabled" ]] ; then nmcli radio wifi off notify-send "Wifi is now" off else nmcli radio wifi on notify-send "Wifi is now" on fi