Created
July 20, 2018 17:13
-
-
Save rtgnx/1a9d1159509a21267c4c2580da996b52 to your computer and use it in GitHub Desktop.
Wifi menu script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function wifi_list() { | |
wpa_cli list_networks | tail -n +3 | rofi -dmenu | cut -d' ' -f1 | |
} | |
wpa_cli select_network "$(wifi_list)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment