diff --git a/.stop.txt b/.stop.txt deleted file mode 100644 index 3d0b428..0000000 --- a/.stop.txt +++ /dev/null @@ -1,2 +0,0 @@ -Fehler: »wg_config« ist keine aktive Verbindung. -Fehler: Keine aktive Verbindung angegeben. diff --git a/wire_g b/wire_g index 43ba2ee..6e9b949 100755 --- a/wire_g +++ b/wire_g @@ -37,7 +37,7 @@ ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ ############################################################################################################ wg_notify(){ - + ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//') case $LANG in de_DE.UTF-8) OPEN=öffnen ;; @@ -49,7 +49,7 @@ wg_notify(){ --undecorated --borders=8 --skip-taskbar \ --text-align=center --no-buttons --auto-close \ --timeout 2 --timeout-indicator=bottom \ - --text=$""$ACTIVE" powered" + --text=$""$ACTIVE" powered" & # autoconnect wird hier abgeschalten damit auch neu importierte nach einem Systemneustart nicht aktiv sind nmcli con mod "$ACTIVE" connection.autoconnect no