tunnel an tunnel aus fix

This commit is contained in:
Désiré Werner Menrath 2023-11-16 17:34:53 +01:00
parent 209f8b732f
commit 973fbae8bc

4
wire_g
View File

@ -53,7 +53,7 @@ wg_stop(){
--undecorated --borders=8 --skip-taskbar \
--text-align=center --no-buttons \
--timeout 2 --timeout-indicator=bottom \
--text=$"<span color='#0fad0a'><b>"$VALUE" Connection</b></span><span>" "<b>disconnected</b></span>"
--text=$"<span color='#0fad0a'><b>"$VALUE" Connection</b></span><span> <b>disconnected</b></span>"
fi
done
IFS=$'\n' lines=( $(awk '{print $2}' ${WG_WDIR}for-kill_pid.txt) )
@ -78,7 +78,7 @@ wg_notify(){
--undecorated --borders=8 --skip-taskbar \
--text-align=center --no-buttons --auto-close \
--timeout 2 --timeout-indicator=bottom \
--text=$"<span color='#0fad0a'><b>"$ACTIVE"</b></span>" "<span><b>powered</b></span>" &
--text=$"<span color='#0fad0a'><b>"$ACTIVE"</b></span> <span><b>powered</b></span>" &
# autoconnect wird hier abgeschalten damit auch neu importierte nach einem Systemneustart nicht aktiv sind
nmcli con mod "$ACTIVE" connection.autoconnect no