New Setup 📦

This commit is contained in:
Luca 2023-02-05 05:02:49 +01:00
parent d16174b447
commit 415dbd08a1
10194 changed files with 1368647 additions and 4 deletions

18
home/.local/bin/scripts/dwifi Executable file
View file

@ -0,0 +1,18 @@
#!/bin/sh
# Sending Notification With dunst :
notify-send "listing available Wi-Fi networks..."
status=$(nmcli -fields WIFI g)
if [[ "$status" =~ "enabled" ]]; then
toggle="睊 Disable Wi-Fi"
elif [[ "$status" =~ "disabled" ]]; then
toggle="直 Enable Wi-Fi"
fi
bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | sed -E "s/WPA*.?\S/ /g" | sed "s/^--/ /g" | sed "s/ //g" | sed "/--/d"| dmenu -i -l 20 -h 25 -p "Select Wifi 直:" | cut -d' ' -f1)
pass=$(echo"" | dmenu -l 20 -h 30 -i -p "Enter the password :")
nmcli device wifi connect $bssid password $pass