notify-send entfernt

This commit is contained in:
2023-11-15 12:38:16 +01:00
parent e3783c62d5
commit b18c9ff049
3 changed files with 21 additions and 16 deletions

View File

@ -33,8 +33,12 @@ export TEXTDOMAINDIR="/usr/share/locale"
# hier wird die Ausgabe von nmcli für die ausVALUEung in die .stop.txt gespeichert
nmcli connection down "$VALUE" &> ${WG_WDIR}.stop.txt
if disable=$(grep -i 'deaktiviert\|deactivated' ${WG_WDIR}.stop.txt)
then
notify-send --icon=${WG_PIC}wg-stop.png $"$VALUE Connection disconnected"
then
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 \
--text=$"<span color='#0fad0a'><b>"$VALUE" Connection disconnected</b></span>"
fi
done
pkill yad