script to toggle mmozilla vpn
This commit is contained in:
parent
e83df654fa
commit
7ff3eb66f8
14
toggle-mozvpn.sh
Normal file
14
toggle-mozvpn.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
STATE=$(mozillavpn status | grep "VPN state" | awk '{print $3}')
|
||||
|
||||
|
||||
if [ "$STATE" == "off" ]; then
|
||||
mozillavpn activate
|
||||
notify-send -i /usr/share/icons/hicolor/32x32/apps/mozillavpn.png "Mozilla VPN" "VPN Activated"
|
||||
fi
|
||||
|
||||
if [ "$STATE" == "on" ]; then
|
||||
mozillavpn deactivate
|
||||
notify-send -i /usr/share/icons/hicolor/32x32/apps/mozillavpn.png "Mozilla VPN" "VPN Deactivated"
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user