From 36ec0695da3327c6bf7df883bf768145e603c056 Mon Sep 17 00:00:00 2001 From: BitHeaven <33015545+BitHeaven-Official@users.noreply.github.com> Date: Sat, 13 Aug 2022 19:19:16 +0500 Subject: [PATCH] Create wifi --- wifi | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 wifi diff --git a/wifi b/wifi new file mode 100644 index 0000000..88cce9a --- /dev/null +++ b/wifi @@ -0,0 +1,5 @@ +#!/bin/sh + +bssid=$(nmcli -f BSSID,SSID,SIGNAL,RATE,BARS,SECURITY dev wifi list | sed -n '1!p' | dmenu -p "Select WiFi: " -l 20 | cut -d' ' -f1) +pass=$(echo "" | dmenu -p "Enter password: ") +nmcli device wifi connect $bssid password $pass