Notify translate mit case
This commit is contained in:
parent
1ad52740d1
commit
146b617158
9
wire_g
9
wire_g
@ -42,6 +42,13 @@ wg_notify(){
|
||||
a_user=$(whoami)
|
||||
active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
||||
wg_pic="/home/$a_user/.icons/"
|
||||
case $LANG in
|
||||
|
||||
de_DE.UTF-8) $show=aktiv ;;
|
||||
|
||||
|
||||
*) $show=activ ;;
|
||||
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
|
||||
nmcli con mod $active connection.autoconnect no
|
||||
@ -59,7 +66,7 @@ wg_notify(){
|
||||
#Icon des Menübuttons definieren
|
||||
echo "icon:${wg_pic}wg-vpn.png" >&3
|
||||
#Name des Menüs definieren
|
||||
echo "tooltip:$active activ" >&3
|
||||
echo "tooltip:$active $show" >&3
|
||||
|
||||
}
|
||||
export -f wg_notify
|
||||
|
Loading…
x
Reference in New Issue
Block a user