From 8faef8c3c14bd99a3335dd78d253bebe83b48027 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 6 Jan 2026 16:44:55 +0100 Subject: tweak(firefox): set zoomValues based on devPixelsPerPx --- nixos/profiles/workstation/firefox.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'nixos/profiles') diff --git a/nixos/profiles/workstation/firefox.nix b/nixos/profiles/workstation/firefox.nix index a2b8f49..ce77960 100644 --- a/nixos/profiles/workstation/firefox.nix +++ b/nixos/profiles/workstation/firefox.nix @@ -5,9 +5,16 @@ enable = true; package = let + devPixelsPerPx = 1.2; prefs = { # about:config preferences # We're setting them via extraPrefs because policies.Preferences doesn't support all about:config preferences. + + # Make everything a bit bigger (with this the default Firefox font size matches my terminal font size of 14pt). + "layout.css.devPixelsPerPx" = toString devPixelsPerPx; + # With Ctrl+- I want to get get devicePixelRatio=1. + "toolkit.zoomManager.zoomValues" = ".3,.5,.67,${toString (1 / devPixelsPerPx)},1,1.1,1.2,1.33,1.5,1.7,2,2.4,3,4,5"; + "browser.aboutConfig.showWarning" = false; "browser.ml.chat.menu" = false; "browser.tabs.insertAfterCurrent" = true; @@ -15,7 +22,6 @@ "browser.uidensity" = 1; "extensions.activeThemeID" = "firefox-compact-dark@mozilla.org"; # can be changed via UI despite this about:config setting being locked "identity.fxaccounts.enabled" = false; - "layout.css.devPixelsPerPx" = "1.2"; # with this the default Firefox font size matches my terminal font size of 14pt "sidebar.revamp" = false; # with the revamped sidebar Ctrl+B opens but not closes the sidebar which is annoying "toolkit.legacyUserProfileCustomizations.stylesheets" = true; }; -- cgit v1.3.1