summaryrefslogtreecommitdiff
path: root/scripts/wifi-menu
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/wifi-menu')
-rw-r--r--scripts/wifi-menu5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/wifi-menu b/scripts/wifi-menu
new file mode 100644
index 0000000..a4ff63a
--- /dev/null
+++ b/scripts/wifi-menu
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | dmenu -p "Select Wi-Fi:" -l 20 | cut -d' ' -f1)
+pass=$(echo "" | dmenu -p "Enter password🔑: ")
+nmcli device wifi connect $bssid password $pass