From 0838d095c1b45ca18a9397d6109d9bd3f0b0b62c Mon Sep 17 00:00:00 2001 From: "Henry J. Webster" Date: Thu, 30 Jul 2026 18:53:58 -0500 Subject: enzo: force LibreWolf to read the portal for color-scheme The portal now correctly reports prefer-dark, but LibreWolf content stayed light: Firefox's default widget.use-xdg-desktop-portal.settings = 2 ("auto") reads GTK directly under bare niri and ignores the portal. Set it to 1 (always use the portal) so web content's prefers-color-scheme follows the color-scheme served by xdg-desktop-portal-gtk. LibreWolf doesn't set this pref, so "default" status suffices. Assisted-by: Claude:claude-opus-4-8 --- machines/enzo/desktop.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'machines') diff --git a/machines/enzo/desktop.nix b/machines/enzo/desktop.nix index 4d1c29b..1e51e53 100644 --- a/machines/enzo/desktop.nix +++ b/machines/enzo/desktop.nix @@ -118,6 +118,17 @@ Status = "locked"; }; + # Follow the desktop's dark setting for web content. Firefox's default + # (widget.use-xdg-desktop-portal.settings = 2 "auto") reads GTK + # directly under bare niri and ignores the portal, so content stayed + # light even after the portal correctly reported prefer-dark. Force it + # to always use the portal (1) so prefers-color-scheme follows the + # color-scheme we serve via xdg-desktop-portal-gtk above. + "widget.use-xdg-desktop-portal.settings" = { + Value = 1; + Status = "default"; + }; + # Blank home page + blank new tab "browser.startup.homepage" = { Value = "about:blank"; -- cgit v1.3