From 54114535b77e9d5e07b47f985b86646562593d791ccb6c22d545f8c48790b03d Mon Sep 17 00:00:00 2001 From: Mikkel Harboe Arp Henriksen Date: Thu, 19 Jun 2025 22:54:25 +0200 Subject: [PATCH] wifi --- templates/launch-wifi-menu.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/launch-wifi-menu.sh.j2 b/templates/launch-wifi-menu.sh.j2 index ba11bd7..6d8f8fd 100644 --- a/templates/launch-wifi-menu.sh.j2 +++ b/templates/launch-wifi-menu.sh.j2 @@ -5,7 +5,7 @@ # 1. Viser en liste af tilgængelige Wi-Fi SSID'er med nmcli # 2. Sender listen til wofi, som bruger vores specielle 'config-network' fil -SSID=$(nmcli -t -f SSID device wifi list --rescan yes | wofi --show dmenu --conf-file "$HOME/.config/wofi/config-network" --location top_right --x -70 --y 45 --width 200 --style "$HOME/.config/wofi/style.css" -p "Vælg Wi-Fi Netværk") +SSID=$(nmcli -t -f SSID device wifi list --rescan yes | sort -u | wofi --show dmenu --conf-file "$HOME/.config/wofi/config-network" --location top_right --x -70 --y 45 --width 200 --style "$HOME/.config/wofi/style.css" -p "Vælg Wi-Fi Netværk") # 3. Hvis et netværk blev valgt (brugeren trykkede ikke Esc), så prøv at forbinde if [ -n "$SSID" ]; then