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