From 8184ec3bf08b31ea792df5958a13a2a15e66a44b Mon Sep 17 00:00:00 2001 From: Saumit Dinesan <79687674+Saumit-D@users.noreply.github.com> Date: Mon, 29 Nov 2021 20:40:27 +0530 Subject: Create wifi-menu bw wifi-menu --- scripts/wifi-menu | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 scripts/wifi-menu (limited to 'scripts/wifi-menu') 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 -- cgit v1.2.3