diff --git a/wifi b/wifi index b5ec646..73c8db2 100755 --- a/wifi +++ b/wifi @@ -4,6 +4,7 @@ cfg_loc="/home/shockrah/.config/wifi-configs/" iface="wlp1s0" +debug_kill= # wpa_supplicant and dhclient are only exposed to root by default if [ "`id -u`" -ne 0 ] @@ -11,8 +12,6 @@ then echo 'Must be ran as root' exit 1 fi -# Only activating this for testing the menu tbh -debug_kill= __write_config_personal() { printf "network={ @@ -83,7 +82,7 @@ create_new_config() { *Personal) ssid="`echo '' | dmenu -p 'SSID'`" psk="`echo '' | dmenu -p 'Passkey'`" - __write_config_personal "$cfg_loc/$name" "$ssid" "$psk" + __write_config_personal "$name" "$ssid" "$psk" ;; *Enterprise) ssid="`echo '' | dmenu -p 'SSID'`" @@ -95,7 +94,7 @@ create_new_config() { } -option=`printf "Remove\nConnect\nNew\nDiconnect\n" | dmenu -i` +option=`printf "Remove\nConnect\nNew\nDiconnect\n" | dmenu -i -p 'Options:'` case $option in New) create_new_config;; Remove) remove_old_config;;