diff --git a/wg_on_start b/wg_on_start index 1a4b838..2e3f9bd 100644 --- a/wg_on_start +++ b/wg_on_start @@ -28,13 +28,7 @@ IFS=$'\n' WG_START=( $(cat ${WG_WDIR}onstart.txt) ) 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 + yad --image-on-top --image=${WG_PIC}wg-vpn-info.png \ --undecorated --borders=8 --skip-taskbar \ --text-align=center --no-buttons --auto-close \ diff --git a/wire_g b/wire_g index 69c3f7e..a56466d 100755 --- a/wire_g +++ b/wire_g @@ -40,12 +40,7 @@ wg_notify(){ sleep 1 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 + yad --image-on-top --image=${WG_PIC}wg-vpn-info.png \ --undecorated --borders=8 --skip-taskbar \ --text-align=center --no-buttons --auto-close \