From bec2e447365851412f84785b2830506f91e42254 Mon Sep 17 00:00:00 2001 From: punix Date: Wed, 15 Nov 2023 17:56:10 +0100 Subject: [PATCH] Notify pid --- wg_stop | 2 +- wire_g | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wg_stop b/wg_stop index bae782e..2ac7741 100755 --- a/wg_stop +++ b/wg_stop @@ -37,7 +37,7 @@ export TEXTDOMAINDIR="/usr/share/locale" yad --image-on-top --image=${WG_PIC}wg-info.png \ --undecorated --borders=8 --skip-taskbar \ --text-align=center --no-buttons \ - --timeout 4 --timeout-indicator=bottom \ + --timeout 2 --timeout-indicator=bottom \ --text=$""$VALUE" Connection disconnected" fi done diff --git a/wire_g b/wire_g index 263d618..1ffc6da 100755 --- a/wire_g +++ b/wire_g @@ -61,7 +61,8 @@ wg_notify(){ --menu="Wire-G $OPEN!/sbin/wire_g |$ACTIVE stop!/sbin/wg_stop" \ --command="menu" - +# Schreib die pid von Notify in + ps aux | grep yad | grep -v grep | awk '{print $2}' > ${WG_WDIR}Notify_PID.txt } export -f wg_notify