diff --git a/dmenu_scripts/wpa_connect b/dmenu_scripts/wpa_connect index c322244..474eda4 100755 --- a/dmenu_scripts/wpa_connect +++ b/dmenu_scripts/wpa_connect @@ -10,7 +10,7 @@ networks=$(wpa_cli -i $nic_name list_networks | awk '{print $2}' | tail -n +2) selected_network=$(echo "$networks" | dmenu -p "Select a network:") # Get network ID from network name -network_id=$(wpa_cli -i $nic_name list_networks | grep $selected_network | awk '{print $1}') +network_id=$(wpa_cli -i "$nic_name" get_network "$selected_network" id) # Check if a network was selected if [ -n "$network_id" ]; then diff --git a/wpa_tui.c b/wpa_tui.c new file mode 100644 index 0000000..aa9ffb8 --- /dev/null +++ b/wpa_tui.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char ** argv) +{ + notcurses_init({TO-DO}); + return 0; +}