diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-03-12 19:54:51 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-03-12 19:54:51 +0530 |
commit | 54b772cae06eb25adf33297e35234f33ded81a7b (patch) | |
tree | f287ee48faa8013e4a8f0ee764a6d3cd850bb24d /scripts/wifi-menu-custom | |
parent | 7197e45d94dbcf4877d585fff8e634896876ae83 (diff) |
neovim addition
Diffstat (limited to 'scripts/wifi-menu-custom')
-rwxr-xr-x | scripts/wifi-menu-custom | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/scripts/wifi-menu-custom b/scripts/wifi-menu-custom deleted file mode 100755 index db2fced..0000000 --- a/scripts/wifi-menu-custom +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -choice=$(echo -e "up\ndown\nconnect" | dmenu -p "Do you wish to connect to a wi-fi or disconnect?:") - -case $choice in - "connect") - 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 "Enter Pswd ") - nmcli device wifi $choice $bssid password $pass;; - "up" | "down") - ssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | dmenu -p "Select Wifi " -l 20 | cut -d' ' -f3) - nmcli c $choice $ssid;; -esac -wifistatus=$(nmcli d | grep wlan0 | cut -d ' ' -f10) -case $wifistatus in - "connected") - nmcli con down eth0 "Wired connection 1";; - "disconnected") - nmcli con up eth0 "Wired connection 1";; -esac -ethstatus=$(nmcli d | grep eth0 | cut -d ' ' -f7) -notify-send "Ethernet connection is $ethstatus" |