notify-send entfernt
This commit is contained in:
8
wg_stop
8
wg_stop
@ -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
|
||||
|
Reference in New Issue
Block a user