Compare commits

..

2 Commits

Author SHA1 Message Date
035179c808 fix on wg_on_start 2023-11-26 19:38:24 +01:00
14c2a6c69a test 2023-11-26 17:50:32 +01:00
2 changed files with 3 additions and 2 deletions

View File

@ -39,7 +39,7 @@ ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/
--undecorated --borders=8 --skip-taskbar \ --undecorated --borders=8 --skip-taskbar \
--text-align=center --no-buttons --auto-close \ --text-align=center --no-buttons --auto-close \
--timeout 1 \ --timeout 1 \
--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 # autoconnect wird hier abgeschalten damit auch neu importierte nach einem Systemneustart nicht aktiv sind
IFS=$'\n' lines=( $(cat ${WG_WDIR}tunnel.txt) ) IFS=$'\n' lines=( $(cat ${WG_WDIR}tunnel.txt) )

View File

@ -42,3 +42,4 @@ WG_PIC="/home/$USER/.icons/"
done done
IFS=$'\n' lines=( $(cat ${WG_WDIR}for-kill_pid.txt) ) IFS=$'\n' lines=( $(cat ${WG_WDIR}for-kill_pid.txt) )
kill $lines kill $lines
#test