pinwheel: Add warning color for mullvad status in waybar

This commit is contained in:
Alexander Heldt
2023-10-01 22:41:54 +02:00
parent 65de54d4bf
commit 9aeb1670a1

View File

@@ -47,16 +47,16 @@ let
output() {
case $(status) in
$STATUS_DISCONNECTED)
echo '{ "text": "" }' ;;
echo '{ "text": "", "class": "disconnected" }' ;;
$STATUS_CONNECTING)
echo '{ "text": "", "tooltip": "Connecting" }' ;;
echo '{ "text": "", "tooltip": "Connecting", "class": "disconnected" }' ;;
$STATUS_CONNECTED)
TOOLTIP=$(${pkgs.mullvad}/bin/mullvad status)
echo "{ \"text\": \"\", \"tooltip\":\"$TOOLTIP\" }" ;;
$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
}
@@ -235,6 +235,10 @@ in
background-color: ${background};
}
#custom-mullvad.disconnected {
color: ${warning};
}
#custom-work-vpn-status {
color: ${warning};
}