verbesserungen

This commit is contained in:
2023-10-28 22:45:53 +02:00
parent 3f1330f850
commit d0fb85ab4e
3 changed files with 8 additions and 6 deletions

8
wire_g
View File

@ -84,7 +84,7 @@ remove(){
active=$(cat ${wg_wdir}.wg_noactive.txt)
selection=$(yad --no-click --list --height=300 --width=60 \
--title="Wire-G Trash" \
--title="Wire-G Trash" --center \
--fixed --buttons-layout=center \
--button="OK" --button="Abbrechen" \
--separator="" --window-icon=${wg_pic}wg-trash.png \
@ -92,7 +92,7 @@ remove(){
if [ "$?" = "0" ]
then
nmcli connection delete $selection &> ${wg_wdir}.tmp.txt
erfolg=$(grep -i "Verbindung erfolgreich gelöscht" ${wg_wdir}.tmp.txt)
success=$(grep -i "erfolgreich gelöscht" ${wg_wdir}.tmp.txt)
if [ "$?" = "0" ]
then
yad --window-icon=${wg_pic}wg-trash.png \
@ -122,7 +122,7 @@ export -f remove
connect(){
erfolg=$(grep -i "Verbindung wurde erfolgreich aktiviert" ${wg_wdir}.tmp.txt)
success=$(grep -i "erfolgreich aktiviert" ${wg_wdir}.tmp.txt)
if [ "$?" = "0" ]
then
nmcli con mod $selection connection.autoconnect no
@ -135,7 +135,7 @@ connect(){
# hiermit wird die Farbe für Variable $active festgelegt mit fetter Schrift.
selection=$(yad --no-click --list \
--close-on-unfocus --tab=Löschen \
--close-on-unfocus --center \
--height=300 --width=60 --title="Wire-G" \
--fixed --buttons-layout=center \
--button="OK" --button="Abbrechen" \