This commit is contained in:
2023-11-02 19:24:43 +01:00
parent 271718166f
commit e0763ff3ac
3 changed files with 4 additions and 4 deletions

2
wire_g
View File

@ -43,7 +43,7 @@ wg_notify(){
a_user=$(whoami)
active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
wg_pic="/home/$a_user/.icons/"
notify-send --icon={wg_pic}wg-vpn.png $"$active powered"
notify-send --icon={wg_pic}wg-vpn.png $"$active powered."
# autoconnect wird hier abgeschalten damit auch neu importierte nach einem Systemneustart nicht aktiv sind
nmcli con mod $active connection.autoconnect no
# ab hier beginnt yad notify