summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <79687674+Saumit-D@users.noreply.github.com>2021-11-29 20:40:27 +0530
committerGitHub <noreply@github.com>2021-11-29 20:40:27 +0530
commit8184ec3bf08b31ea792df5958a13a2a15e66a44b (patch)
tree7799e733c2b0ed1412617991517fb9d137b0f635
parent80d87ce61627414b2b131bd530829fa70260ab57 (diff)
Create wifi-menu
bw 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