From 4a27d34e17ab4e0ffea24057434fd3d8802435a0 Mon Sep 17 00:00:00 2001 From: punix Date: Mon, 20 Nov 2023 18:25:36 +0100 Subject: [PATCH] =?UTF-8?q?Wire-G=20Skripte=20f=C3=BCr=20translate=20vorbe?= =?UTF-8?q?reitet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wg_on_start | 14 +++++++------- wire_g | 30 +++++++++++++++--------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/wg_on_start b/wg_on_start index 3e59441..3f46935 100644 --- a/wg_on_start +++ b/wg_on_start @@ -29,12 +29,12 @@ nmcli connection up "$WG_START" nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//' &> ${WG_WDIR}onstart.txt ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//') - case $LANG in - - de_DE.UTF-8) OPEN=öffnen ;; - - *) OPEN=open ;; - esac +# case $LANG in +# +# de_DE.UTF-8) OPEN=öffnen ;; +# +# *) OPEN=open ;; +# esac yad --image-on-top --image=${WG_PIC}wg-vpn-info.png \ --undecorated --borders=8 --skip-taskbar \ --text-align=center --no-buttons --auto-close \ @@ -49,7 +49,7 @@ ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ --image="${WG_PIC}wg-vpn.png" \ --icon-size=32 --no-middle \ --text=$"$ACTIVE activ" \ - --menu="Wire-G $OPEN!/sbin/wire_g + --menu=$"Wire-G open!/sbin/wire_g |$ACTIVE stop!/sbin/wg_stop" \ --command="menu" & diff --git a/wire_g b/wire_g index 55f1072..93a96dd 100755 --- a/wire_g +++ b/wire_g @@ -40,12 +40,12 @@ wg_notify(){ nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//' &> ${WG_WDIR}onstart.txt ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//') - case $LANG in - - de_DE.UTF-8) OPEN=öffnen ;; - - *) OPEN=open ;; - esac +# case $LANG in +# +# de_DE.UTF-8) OPEN=öffnen ;; +# +# *) OPEN=open ;; +# esac yad --image-on-top --image=${WG_PIC}wg-vpn-info.png \ --undecorated --borders=8 --skip-taskbar \ --text-align=center --no-buttons --auto-close \ @@ -59,7 +59,7 @@ wg_notify(){ --image="${WG_PIC}wg-vpn.png" \ --icon-size=32 --no-middle \ --text=$"$ACTIVE activ" \ - --menu="Wire-G $OPEN!/sbin/wire_g + --menu=$"Wire-G open!/sbin/wire_g |$ACTIVE stop!/sbin/wg_stop" \ --command="menu" & # Schreib die pid von Notify in @@ -209,8 +209,8 @@ about(){ yad --form --fixed \ --borders=8 --buttons-layout=center --text-align=center \ --button="OK" --undecorated \ - --field="Autoconnect on PC Start:CHK" TRUE \ - --field="Autoupdate:CHK" TRUE \ + --field=$"Autoconnect on PC Start:CHK" TRUE \ + --field=$"Autoupdate:CHK" TRUE \ --image-on-top --image=${WG_PIC}wg-vpn-info.png \ --separator=" " --window-icon=${WG_PIC}wg-vpn.png \ --text=$"Wire-G Author: Désiré Werner Menrath \n @@ -227,8 +227,8 @@ about(){ yad --form --fixed \ --borders=8 --buttons-layout=center --text-align=center \ --button="OK" --undecorated \ - --field="Autoconnect on PC Start:CHK" FALSE \ - --field="Autoupdate:CHK" TRUE \ + --field=$"Autoconnect on PC Start:CHK" FALSE \ + --field=$"Autoupdate:CHK" TRUE \ --image-on-top --image=${WG_PIC}wg-vpn-info.png \ --separator=" " --window-icon=${WG_PIC}wg-vpn.png \ --text=$"Wire-G Author: Désiré Werner Menrath \n @@ -245,8 +245,8 @@ about(){ yad --form --fixed \ --borders=8 --buttons-layout=center --text-align=center \ --button="OK" --undecorated \ - --field="Autoconnect on PC Start:CHK" FALSE \ - --field="Autoupdate:CHK" FALSE \ + --field=$"Autoconnect on PC Start:CHK" FALSE \ + --field=$"Autoupdate:CHK" FALSE \ --image-on-top --image=${WG_PIC}wg-vpn-info.png \ --separator=" " --window-icon=${WG_PIC}wg-vpn.png \ --text=$"Wire-G Author: Désiré Werner Menrath \n @@ -263,8 +263,8 @@ about(){ yad --form --fixed \ --borders=8 --buttons-layout=center --text-align=center \ --button="OK" --undecorated \ - --field="Autoconnect on PC Start:CHK" TRUE \ - --field="Autoupdate:CHK" FALSE \ + --field=$"Autoconnect on PC Start:CHK" TRUE \ + --field=$"Autoupdate:CHK" FALSE \ --image-on-top --image=${WG_PIC}wg-vpn-info.png \ --separator=" " --window-icon=${WG_PIC}wg-vpn.png \ --text=$"Wire-G Author: Désiré Werner Menrath \n