summaryrefslogtreecommitdiff
path: root/local/.local/scripts/wificon
diff options
context:
space:
mode:
Diffstat (limited to 'local/.local/scripts/wificon')
-rwxr-xr-xlocal/.local/scripts/wificon5
1 files changed, 5 insertions, 0 deletions
diff --git a/local/.local/scripts/wificon b/local/.local/scripts/wificon
new file mode 100755
index 0000000..fc43c2c
--- /dev/null
+++ b/local/.local/scripts/wificon
@@ -0,0 +1,5 @@
+#! /bin/bash
+
+wifinimi=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | dmenu -p "Select Wifi: " -l 20 | cut -d' ' -f1)
+pass=$(echo "" | dmenu -p "Enter Password: ")
+nmcli device wifi connect $wifinimi password $pass