pinwheel: Add warning color for mullvad status in waybar
This commit is contained in:
@@ -47,16 +47,16 @@ let
|
|||||||
output() {
|
output() {
|
||||||
case $(status) in
|
case $(status) in
|
||||||
$STATUS_DISCONNECTED)
|
$STATUS_DISCONNECTED)
|
||||||
echo '{ "text": "" }' ;;
|
echo '{ "text": "", "class": "disconnected" }' ;;
|
||||||
$STATUS_CONNECTING)
|
$STATUS_CONNECTING)
|
||||||
echo '{ "text": "", "tooltip": "Connecting" }' ;;
|
echo '{ "text": "", "tooltip": "Connecting", "class": "disconnected" }' ;;
|
||||||
$STATUS_CONNECTED)
|
$STATUS_CONNECTED)
|
||||||
TOOLTIP=$(${pkgs.mullvad}/bin/mullvad status)
|
TOOLTIP=$(${pkgs.mullvad}/bin/mullvad status)
|
||||||
echo "{ \"text\": \"\", \"tooltip\":\"$TOOLTIP\" }" ;;
|
echo "{ \"text\": \"\", \"tooltip\":\"$TOOLTIP\" }" ;;
|
||||||
$STATUS_DISCONNECTING)
|
$STATUS_DISCONNECTING)
|
||||||
echo '{ "text": "", "tooltip": "Disconnecting" }' ;;
|
echo '{ "text": "", "tooltip": "Disconnecting", "class": "disconnected" }' ;;
|
||||||
*)
|
*)
|
||||||
echo '{ "text": "", "tooltip": "Status unknown" }' ;;
|
echo '{ "text": "", "tooltip": "Status unknown", "class": "disconnected" }' ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -235,6 +235,10 @@ in
|
|||||||
background-color: ${background};
|
background-color: ${background};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#custom-mullvad.disconnected {
|
||||||
|
color: ${warning};
|
||||||
|
}
|
||||||
|
|
||||||
#custom-work-vpn-status {
|
#custom-work-vpn-status {
|
||||||
color: ${warning};
|
color: ${warning};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user