From 705a16aa3c345f9b4e1c0fdd032f498e906a8f01 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 7 Dec 2025 12:05:25 +0100 Subject: tweak(workstation): tune Firefox preferences --- link-user | 7 +++++++ nixos/profiles/workstation/graphical.nix | 4 ++++ user/mozilla/firefox/userChrome.css | 7 +++++++ 3 files changed, 18 insertions(+) create mode 100644 user/mozilla/firefox/userChrome.css diff --git a/link-user b/link-user index 6684160..752e38c 100755 --- a/link-user +++ b/link-user @@ -24,3 +24,10 @@ for file in $(find . -type f); do fi ln -s "$PWD/$file" "$homefile" done + +if [[ -f ~/.mozilla/firefox/profiles.ini ]]; then + for dir in ~/.mozilla/firefox/*.*/; do + mkdir -p "$dir"/chrome + ln -sf ~/.config/mozilla/firefox/userChrome.css "$dir/chrome" + done +fi diff --git a/nixos/profiles/workstation/graphical.nix b/nixos/profiles/workstation/graphical.nix index b09108c..a9202ad 100644 --- a/nixos/profiles/workstation/graphical.nix +++ b/nixos/profiles/workstation/graphical.nix @@ -87,10 +87,14 @@ # about:config preferences # We're setting them via extraPrefs because policies.Preferences doesn't support all about:config preferences. "browser.aboutConfig.showWarning" = false; + "browser.ml.chat.menu" = false; "browser.tabs.insertAfterCurrent" = true; + "browser.translations.automaticallyPopup" = false; "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 14px + "toolkit.legacyUserProfileCustomizations.stylesheets" = true; }; in (pkgs.wrapFirefox pkgs.firefox-unwrapped { diff --git a/user/mozilla/firefox/userChrome.css b/user/mozilla/firefox/userChrome.css new file mode 100644 index 0000000..624b7d7 --- /dev/null +++ b/user/mozilla/firefox/userChrome.css @@ -0,0 +1,7 @@ +/* I don't need the window close button and it looks distracting. */ +.titlebar-buttonbox-container { + display: none; +} +.titlebar-spacer { + display: none; +} -- cgit v1.3.1