From d6417797db6549cccefdbc2a4d97765754f78bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sat, 10 Jan 2026 22:36:36 +0100 Subject: [PATCH] packages/mullvad-status: show red when no internet --- nix/packages/by-name/mullvad-status/mullvad-status.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nix/packages/by-name/mullvad-status/mullvad-status.sh b/nix/packages/by-name/mullvad-status/mullvad-status.sh index af75f92f..17873d5b 100644 --- a/nix/packages/by-name/mullvad-status/mullvad-status.sh +++ b/nix/packages/by-name/mullvad-status/mullvad-status.sh @@ -28,6 +28,13 @@ connected) echo -n " ($COUNTRY,$CITY)" ;; disconnected) - xmobarColor "red" "Mullvad Off" + function is-locked-down { + echo "$MULLVAD_STATUS" | jq --exit-status ".details.locked_down" >/dev/null + } + if is-locked-down "LockdownMode"; then + xmobarColor "red" "Mullvad Off " + else + xmobarColor "orange" "Mullvad Off" + fi ;; esac