Added networking

This commit is contained in:
2026-03-13 23:48:55 +01:00
parent 8da47fabc4
commit 1574a5ae47
5 changed files with 462 additions and 370 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/run/current-system/sw/bin/bash
# Get a list of available Wi-Fi networks
networks=$(nmcli -t -f SSID device wifi list)
# Show the list using wofi with dmenu mode
selected=$(echo "$networks" | wofi --show dmenu --width=300 --height=500 --prompt="Select a network")
# Connect to the selected network with the --ask option
if [ -n "$selected" ]; then
nmcli --ask device wifi connect "$selected"
fi