summaryrefslogtreecommitdiff
path: root/.local/bin/connect-wifi
diff options
context:
space:
mode:
authorkrolyxon <krolyxon@tutanota.com>2022-07-19 13:54:35 +0530
committerkrolyxon <krolyxon@tutanota.com>2022-07-19 13:54:35 +0530
commit80c5830b7dffa08fd72159ee05f9d6c6b07357f2 (patch)
tree99eee832b4422434185577e1c1d7628ce7b4cd38 /.local/bin/connect-wifi
parent0fa2ced9bb704d175f2e193aa2881dbdce4e11b8 (diff)
ncmpcpp startup screen
Diffstat (limited to '.local/bin/connect-wifi')
-rwxr-xr-x.local/bin/connect-wifi6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/connect-wifi b/.local/bin/connect-wifi
new file mode 100755
index 0000000..c60bbe4
--- /dev/null
+++ b/.local/bin/connect-wifi
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | dmenu -p "Select wifi:" -l 20 | cut -d' ' -f1)
+pass=$(echo "" | dmenu -P -p "Enter Password: ")
+nmcli device wifi connect $bssid password $pass
+notify-send "sucessfully connected to $bssid"