fehler korrektur

This commit is contained in:
2023-11-02 20:58:08 +01:00
parent f7a869fbc8
commit 10aa4583f0
4 changed files with 11 additions and 11 deletions

8
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
@ -60,7 +60,7 @@ wg_notify(){
#Icon des Menübuttons definieren
echo "icon:${wg_pic}wg-vpn.png" >&3
#Name des Menüs definieren
echo $"tooltip:$active activ" >&3
echo "tooltip:$"$active activ" >&3
}
export -f wg_notify
@ -119,7 +119,7 @@ remove(){
then
yad --window-icon=${wg_pic}wg-trash.png \
--image-on-top --image=${wg_pic}wg-info.png \
--text=$"Your tunnel $selection was successfully deleted.\n" \
--text=$"Your tunnel $selection was successfully deleted." \
--text-align=center --button=$"OK" --title "Wire-G Trash" \
--fixed --center --buttons-layout=center --borders=8 --center
else
@ -148,7 +148,7 @@ up_or_down(){
if [[ -z $active ]]
then
yad --image-on-top --image=${wg_pic}wg-info.png \
--text=$"There is no active tunnel that you could stop.\\n" \
--text=$"There is no active tunnel that you could stop." \
--text-align=center --button=$"OK" --title "Wire-G" \
--fixed --center --buttons-layout=center --borders=8 --center
else