diff --git a/readme.md b/readme.md index 6702fc0..1fece4e 100644 --- a/readme.md +++ b/readme.md @@ -15,18 +15,8 @@ Scale 0-5 * 0 = High priority * 5 = Low priority -bright -* Remove some bashism that the script is heavily reliant on - -usbm +usbm 0 * Actually finishing the userland mount script -wed - -* Remove bashism's from wifi enabler/disabler - -ytdl - -* Remove bashism's from ytdl script diff --git a/wed b/wed index a3af57e..1cc2a70 100755 --- a/wed +++ b/wed @@ -1,4 +1,5 @@ #!/bin/bash -choice=$(printf "on\noff" | dmenu -i -p "Wifi $(nmcli r w)") -[ -z "$choice" ] && exit 0 +stat=`nmcli r w` +choice=`printf "on\noff" | dmenu -i -p "Wifi $stat"` +if [ -z "$choice" ]; then exit;fi nmcli r w $choice