Wire-G Skripte für translate vorbereitet
This commit is contained in:
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
|
||||
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" &
|
||||
|
||||
|
Reference in New Issue
Block a user