summaryrefslogtreecommitdiff
path: root/local/.local/scripts/wificon
diff options
context:
space:
mode:
authorRasmus <rasmus.luha@gmail.com>2023-04-08 00:27:03 +0300
committerRasmus <rasmus.luha@gmail.com>2023-04-08 00:27:03 +0300
commita16bdfe930d89e1a7fb354b78d16e8742118f76d (patch)
treef32aabd929a485ac24ea2b3fb1c9c9d041f27478 /local/.local/scripts/wificon
checkers
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