Skip to content

Instantly share code, notes, and snippets.

@rtgnx
Created July 20, 2018 17:13
Show Gist options
  • Save rtgnx/1a9d1159509a21267c4c2580da996b52 to your computer and use it in GitHub Desktop.
Save rtgnx/1a9d1159509a21267c4c2580da996b52 to your computer and use it in GitHub Desktop.
Wifi menu script
#!/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