diff options
| author | Henry J. Webster <hwebs@hwebs.info> | 2026-07-30 18:53:58 -0500 |
|---|---|---|
| committer | Henry J. Webster <hwebs@hwebs.info> | 2026-07-30 18:53:58 -0500 |
| commit | 0838d095c1b45ca18a9397d6109d9bd3f0b0b62c (patch) | |
| tree | b1ee9b85a188e97bad36bcd153f11407cdd0aa83 /machines | |
| parent | ddd8f283326c65972d17eb1016e19539a6fac70e (diff) | |
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
Diffstat (limited to 'machines')
| -rw-r--r-- | machines/enzo/desktop.nix | 11 |
1 files changed, 11 insertions, 0 deletions
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"; |
