Wire-G Skripte für translate vorbereitet
This commit is contained in:
parent
92adc8f898
commit
4a27d34e17
14
wg_on_start
14
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
|
nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//' &> ${WG_WDIR}onstart.txt
|
||||||
ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
||||||
|
|
||||||
case $LANG in
|
# case $LANG in
|
||||||
|
#
|
||||||
de_DE.UTF-8) OPEN=öffnen ;;
|
# de_DE.UTF-8) OPEN=öffnen ;;
|
||||||
|
#
|
||||||
*) OPEN=open ;;
|
# *) OPEN=open ;;
|
||||||
esac
|
# esac
|
||||||
yad --image-on-top --image=${WG_PIC}wg-vpn-info.png \
|
yad --image-on-top --image=${WG_PIC}wg-vpn-info.png \
|
||||||
--undecorated --borders=8 --skip-taskbar \
|
--undecorated --borders=8 --skip-taskbar \
|
||||||
--text-align=center --no-buttons --auto-close \
|
--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" \
|
--image="${WG_PIC}wg-vpn.png" \
|
||||||
--icon-size=32 --no-middle \
|
--icon-size=32 --no-middle \
|
||||||
--text=$"$ACTIVE activ" \
|
--text=$"$ACTIVE activ" \
|
||||||
--menu="Wire-G $OPEN!/sbin/wire_g
|
--menu=$"Wire-G open!/sbin/wire_g
|
||||||
|$ACTIVE stop!/sbin/wg_stop" \
|
|$ACTIVE stop!/sbin/wg_stop" \
|
||||||
--command="menu" &
|
--command="menu" &
|
||||||
|
|
||||||
|
30
wire_g
30
wire_g
@ -40,12 +40,12 @@ wg_notify(){
|
|||||||
|
|
||||||
nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//' &> ${WG_WDIR}onstart.txt
|
nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//' &> ${WG_WDIR}onstart.txt
|
||||||
ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
||||||
case $LANG in
|
# case $LANG in
|
||||||
|
#
|
||||||
de_DE.UTF-8) OPEN=öffnen ;;
|
# de_DE.UTF-8) OPEN=öffnen ;;
|
||||||
|
#
|
||||||
*) OPEN=open ;;
|
# *) OPEN=open ;;
|
||||||
esac
|
# esac
|
||||||
yad --image-on-top --image=${WG_PIC}wg-vpn-info.png \
|
yad --image-on-top --image=${WG_PIC}wg-vpn-info.png \
|
||||||
--undecorated --borders=8 --skip-taskbar \
|
--undecorated --borders=8 --skip-taskbar \
|
||||||
--text-align=center --no-buttons --auto-close \
|
--text-align=center --no-buttons --auto-close \
|
||||||
@ -59,7 +59,7 @@ wg_notify(){
|
|||||||
--image="${WG_PIC}wg-vpn.png" \
|
--image="${WG_PIC}wg-vpn.png" \
|
||||||
--icon-size=32 --no-middle \
|
--icon-size=32 --no-middle \
|
||||||
--text=$"$ACTIVE activ" \
|
--text=$"$ACTIVE activ" \
|
||||||
--menu="Wire-G $OPEN!/sbin/wire_g
|
--menu=$"Wire-G open!/sbin/wire_g
|
||||||
|$ACTIVE stop!/sbin/wg_stop" \
|
|$ACTIVE stop!/sbin/wg_stop" \
|
||||||
--command="menu" &
|
--command="menu" &
|
||||||
# Schreib die pid von Notify in
|
# Schreib die pid von Notify in
|
||||||
@ -209,8 +209,8 @@ about(){
|
|||||||
yad --form --fixed \
|
yad --form --fixed \
|
||||||
--borders=8 --buttons-layout=center --text-align=center \
|
--borders=8 --buttons-layout=center --text-align=center \
|
||||||
--button="OK" --undecorated \
|
--button="OK" --undecorated \
|
||||||
--field="Autoconnect on PC Start:CHK" TRUE \
|
--field=$"Autoconnect on PC Start:CHK" TRUE \
|
||||||
--field="Autoupdate:CHK" TRUE \
|
--field=$"Autoupdate:CHK" TRUE \
|
||||||
--image-on-top --image=${WG_PIC}wg-vpn-info.png \
|
--image-on-top --image=${WG_PIC}wg-vpn-info.png \
|
||||||
--separator=" " --window-icon=${WG_PIC}wg-vpn.png \
|
--separator=" " --window-icon=${WG_PIC}wg-vpn.png \
|
||||||
--text=$"<span color='#626ff1'><b>Wire-G Author: Désiré Werner Menrath</b></span> \n
|
--text=$"<span color='#626ff1'><b>Wire-G Author: Désiré Werner Menrath</b></span> \n
|
||||||
@ -227,8 +227,8 @@ about(){
|
|||||||
yad --form --fixed \
|
yad --form --fixed \
|
||||||
--borders=8 --buttons-layout=center --text-align=center \
|
--borders=8 --buttons-layout=center --text-align=center \
|
||||||
--button="OK" --undecorated \
|
--button="OK" --undecorated \
|
||||||
--field="Autoconnect on PC Start:CHK" FALSE \
|
--field=$"Autoconnect on PC Start:CHK" FALSE \
|
||||||
--field="Autoupdate:CHK" TRUE \
|
--field=$"Autoupdate:CHK" TRUE \
|
||||||
--image-on-top --image=${WG_PIC}wg-vpn-info.png \
|
--image-on-top --image=${WG_PIC}wg-vpn-info.png \
|
||||||
--separator=" " --window-icon=${WG_PIC}wg-vpn.png \
|
--separator=" " --window-icon=${WG_PIC}wg-vpn.png \
|
||||||
--text=$"<span color='#626ff1'><b>Wire-G Author: Désiré Werner Menrath</b></span> \n
|
--text=$"<span color='#626ff1'><b>Wire-G Author: Désiré Werner Menrath</b></span> \n
|
||||||
@ -245,8 +245,8 @@ about(){
|
|||||||
yad --form --fixed \
|
yad --form --fixed \
|
||||||
--borders=8 --buttons-layout=center --text-align=center \
|
--borders=8 --buttons-layout=center --text-align=center \
|
||||||
--button="OK" --undecorated \
|
--button="OK" --undecorated \
|
||||||
--field="Autoconnect on PC Start:CHK" FALSE \
|
--field=$"Autoconnect on PC Start:CHK" FALSE \
|
||||||
--field="Autoupdate:CHK" FALSE \
|
--field=$"Autoupdate:CHK" FALSE \
|
||||||
--image-on-top --image=${WG_PIC}wg-vpn-info.png \
|
--image-on-top --image=${WG_PIC}wg-vpn-info.png \
|
||||||
--separator=" " --window-icon=${WG_PIC}wg-vpn.png \
|
--separator=" " --window-icon=${WG_PIC}wg-vpn.png \
|
||||||
--text=$"<span color='#626ff1'><b>Wire-G Author: Désiré Werner Menrath</b></span> \n
|
--text=$"<span color='#626ff1'><b>Wire-G Author: Désiré Werner Menrath</b></span> \n
|
||||||
@ -263,8 +263,8 @@ about(){
|
|||||||
yad --form --fixed \
|
yad --form --fixed \
|
||||||
--borders=8 --buttons-layout=center --text-align=center \
|
--borders=8 --buttons-layout=center --text-align=center \
|
||||||
--button="OK" --undecorated \
|
--button="OK" --undecorated \
|
||||||
--field="Autoconnect on PC Start:CHK" TRUE \
|
--field=$"Autoconnect on PC Start:CHK" TRUE \
|
||||||
--field="Autoupdate:CHK" FALSE \
|
--field=$"Autoupdate:CHK" FALSE \
|
||||||
--image-on-top --image=${WG_PIC}wg-vpn-info.png \
|
--image-on-top --image=${WG_PIC}wg-vpn-info.png \
|
||||||
--separator=" " --window-icon=${WG_PIC}wg-vpn.png \
|
--separator=" " --window-icon=${WG_PIC}wg-vpn.png \
|
||||||
--text=$"<span color='#626ff1'><b>Wire-G Author: Désiré Werner Menrath</b></span> \n
|
--text=$"<span color='#626ff1'><b>Wire-G Author: Désiré Werner Menrath</b></span> \n
|
||||||
|
Loading…
x
Reference in New Issue
Block a user