From f74c153b76f5c42e63157a8bcbbf1b54187abf78 Mon Sep 17 00:00:00 2001 From: punix Date: Wed, 29 Nov 2023 20:44:53 +0100 Subject: [PATCH] remove case to translate open in Notify --- wg_on_start | 8 +------- wire_g | 7 +------ 2 files changed, 2 insertions(+), 13 deletions(-) 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 \