Change text in mullvad waybar component

This commit is contained in:
2021-04-26 20:17:48 +02:00
parent f1955208eb
commit 8f54bec168

View File

@ -19,20 +19,18 @@ check_status() {
TOOLTIP="$STATUS"
TEXT="VPN"
if check_status "$CONNECTED"; then
TEXT="Connected"
ON_CLICK="mullvad disconnect"
CLASS=""
elif check_status "$DISCONNECTED"; then
TEXT="Disconnected"
ON_CLICK="mullvad connect"
CLASS="disconnected"
elif check_status "$CONNECTING"; then
TEXT="Connecting..."
ON_CLICK="mullvad disconnect"
CLASS="connecting"
else
TEXT="Error"
ON_CLICK="mullvad reconnect"
CLASS="disconnected"
fi