Change text in mullvad waybar component
This commit is contained in:
@ -19,20 +19,18 @@ check_status() {
|
|||||||
|
|
||||||
TOOLTIP="$STATUS"
|
TOOLTIP="$STATUS"
|
||||||
|
|
||||||
|
TEXT="VPN"
|
||||||
|
|
||||||
if check_status "$CONNECTED"; then
|
if check_status "$CONNECTED"; then
|
||||||
TEXT="Connected"
|
|
||||||
ON_CLICK="mullvad disconnect"
|
ON_CLICK="mullvad disconnect"
|
||||||
CLASS=""
|
CLASS=""
|
||||||
elif check_status "$DISCONNECTED"; then
|
elif check_status "$DISCONNECTED"; then
|
||||||
TEXT="Disconnected"
|
|
||||||
ON_CLICK="mullvad connect"
|
ON_CLICK="mullvad connect"
|
||||||
CLASS="disconnected"
|
CLASS="disconnected"
|
||||||
elif check_status "$CONNECTING"; then
|
elif check_status "$CONNECTING"; then
|
||||||
TEXT="Connecting..."
|
|
||||||
ON_CLICK="mullvad disconnect"
|
ON_CLICK="mullvad disconnect"
|
||||||
CLASS="connecting"
|
CLASS="connecting"
|
||||||
else
|
else
|
||||||
TEXT="Error"
|
|
||||||
ON_CLICK="mullvad reconnect"
|
ON_CLICK="mullvad reconnect"
|
||||||
CLASS="disconnected"
|
CLASS="disconnected"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user