Notify korrektur 3

This commit is contained in:
Désiré Werner Menrath 2023-11-10 23:07:50 +01:00
parent c2e1ef800a
commit a65773b7ff

8
wire_g
View File

@ -44,10 +44,10 @@ wg_notify(){
wg_pic="/home/$a_user/.icons/"
case $LANG in
de_DE.UTF-8) show=aktiv & open=öffnen ;;
de_DE.UTF-8) open=öffnen ;;
*) show=activ & open=open ;;
*) open=open ;;
esac
notify-send --icon=${wg_pic}wg-vpn.png $"$active powered"
# autoconnect wird hier abgeschalten damit auch neu importierte nach einem Systemneustart nicht aktiv sind
@ -56,8 +56,8 @@ wg_notify(){
yad --notification \
--image="${wg_pic}wg-vpn.png" \
--icon-size=32 --no-middle \
--text="$active" "$show" \
--menu="Wire-G $open ! sbin/wire_g
--text=$"$active activ" \
--menu="Wire-G $open!/sbin/wire_g
|$active stop!/sbin/wg_stop" \
--command="menu"
}