From 19fa24d814e7e52da531179c0f3d498c967de0b2 Mon Sep 17 00:00:00 2001 From: punix Date: Thu, 9 Nov 2023 19:05:26 +0100 Subject: [PATCH] =?UTF-8?q?exit=200=20hinzugef=C3=BCgt=20und=20kleine=20ko?= =?UTF-8?q?rrektur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wire_g | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/wire_g b/wire_g index 4951214..28b1ae3 100755 --- a/wire_g +++ b/wire_g @@ -95,9 +95,10 @@ import_wg(){ do yad --window-icon=${wg_pic}wg-stop.png \ --image=${wg_pic}wg-info.png --button "OK" \ - --text "Tunnelname existiert schon." \ - --text-align=center --title=$"Wireguard .conf Select file" - exit 0 & more + --title=$"Wire-G" --image-on-top --borders=8 \ + --text-align=center --buttons-layout=center \ + --text $"Tunnel name already exists." + exit 0 done active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//') if [[ -n $active ]] @@ -161,13 +162,13 @@ remove(){ --image-on-top --image=${wg_pic}wg-info.png \ --text=$"Your tunnel $selection was successfully deleted." \ --text-align=center --button=$"OK" --title "Wire-G Trash" \ - --fixed --center --buttons-layout=center --borders=8 --center + --fixed --center --buttons-layout=center --borders=8 else yad --window-icon=${wg_pic}wg-trash.png \ --image-on-top --image=${wg_pic}wg-info.png \ --text=$"Oh something went wrong.\nPlease delete tunnel in the network manager." \ --text-align=center --button=$"OK" --title "Wire-G Trash" \ - --fixed --center --buttons-layout=center --borders=8 --center + --fixed --center --buttons-layout=center --borders=8 fi if [ "$selection" = "$active" ] then