move mozvpn to archive

This commit is contained in:
2025-06-20 21:44:18 +02:00
parent 64b1f1e02f
commit 3da28ecb55

View File

@ -1,22 +0,0 @@
#!/bin/bash
STATE=$(mozillavpn status | grep "VPN state" | awk '{print $3}')
LOCATION=$(mozillavpn status | grep "Server city" | awk '{print $3}')
if [ "$STATE" == "off" ]; then
FEEDBACK=$(mozillavpn activate)
if [[ $FEEDBACK == *"The VPN tunnel is now active"* ]]; then
notify-send -i /usr/share/icons/hicolor/32x32/apps/mozillavpn.png "Mozilla VPN" "VPN Activated: $LOCATION"
else
notify-send --urgency=critical -i /usr/share/icons/hicolor/32x32/apps/mozillavpn.png "Mozilla VPN" "Error"
fi
fi
if [ "$STATE" == "on" ]; then
FEEDBACK=$(mozillavpn deactivate)
if [[ $FEEDBACK == *"The VPN tunnel is now inactive"* ]]; then
notify-send -i /usr/share/icons/hicolor/32x32/apps/mozillavpn.png "Mozilla VPN" "VPN Deactivated"
else
notify-send --urgency=critical -i /usr/share/icons/hicolor/32x32/apps/mozillavpn.png "Mozilla VPN" "Error"
fi
fi