1
1
Fork 0

firefox: modify all configs

This commit is contained in:
Myned 2025-04-12 11:03:55 -05:00
parent ad62fb6dce
commit b46521b2d9
Signed by: myned
GPG key ID: C7224454F7881A34
5 changed files with 76 additions and 18 deletions

View file

@ -143,6 +143,7 @@ with lib; {
"browser.tabs.warnOnClose" = false;
"browser.tabs.warnOnCloseOtherTabs" = false;
"browser.theme.dark-private-windows" = false;
"browser.toolbarbuttons.introduced.sidebar-button" = true;
"browser.toolbars.bookmarks.showOtherBookmarks" = false;
"browser.uidensity" = 0; # Default
"browser.urlbar.quicksuggest.dataCollection.enabled" = false;
@ -219,6 +220,7 @@ with lib; {
"network.http.referer.XOriginPolicy" = 0; # Relaxed
"network.predictor.enabled" = false;
"pref.privacy.disable_button.view_passwords" = false;
"privacy.donottrackheader.enabled" = false;
"privacy.fingerprintingProtection" = false;
"privacy.globalprivacycontrol.enabled" = true;
"privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts" = false;
@ -228,6 +230,11 @@ with lib; {
"security.OCSP.require" = true;
"security.protectionspopup.recordEventTelemetry" = false;
"services.passwordSavingEnabled" = false;
"sidebar.expandOnHoverMessage.dismissed" = true;
"sidebar.main.tools" = ""; # aichat,syncedtabs,history
"sidebar.new-sidebar.has-used" = true;
"sidebar.revamp" = true;
"sidebar.verticalTabs" = true;
"startup.homepage_override_url" = ""; # Disable
"startup.homepage_welcome_url" = ""; # Disable
"svg.context-properties.content.enabled" = true; # Dark theme icons

View file

@ -4,10 +4,20 @@ https://github.com/rafaelmardojai/firefox-gnome-theme
:root {
--gnome-accent: #d33682;
--gnome-tabbar-tab-hover-background: color-mix(in srgb, #073642, #586e75 10%);
--gnome-tabbar-tab-active-background: color-mix(in srgb, #073642, #586e75 20%);
--gnome-secondary-sidebar-background: #073642;
--gnome-sidebar-background: #073642;
--gnome-tabbar-tab-active-background-contrast: color-mix(in srgb, #073642, #586e75 20%);
--gnome-tabbar-tab-active-background: color-mix(in srgb, #073642, #586e75 20%);
--gnome-tabbar-tab-active-hover-background: color-mix(in srgb, #073642, #586e75 30%);
--gnome-tabbar-tab-hover-background: color-mix(in srgb, #073642, #586e75 10%);
--gnome-view-background: #073642;
--gnome-window-background: #073642;
/* Disable inactive window colors */
&:-moz-window-inactive {
--gnome-secondary-sidebar-background: var(--gnome-secondary-sidebar-background);
--gnome-sidebar-background: var(--gnome-sidebar-background);
}
}
/* Center bookmarks */

View file

@ -7,6 +7,7 @@
}:
with lib; let
cfg = config.custom.programs.firefox;
hm = config.home-manager.users.${config.custom.username};
in {
options.custom.programs.firefox = {
enable = mkOption {default = false;};
@ -30,10 +31,12 @@ in {
}
];
home.file = {
".mozilla/firefox/profiles.ini".force = true;
};
# https://stylix.danth.me/options/modules/firefox.html
stylix.targets.firefox = {
# BUG: Tab groups not yet supported
# https://github.com/rafaelmardojai/firefox-gnome-theme/issues/901
# https://github.com/rafaelmardojai/firefox-gnome-theme
firefoxGnomeTheme.enable = true;
profileNames = [cfg.profile];

View file

@ -30,9 +30,7 @@ in {
];
home.file = {
".librewolf/profiles.ini" = {
force = true;
};
".librewolf/profiles.ini".force = true;
};
# https://stylix.danth.me/options/modules/firefox.html

View file

@ -11,6 +11,7 @@ with lib; let
in {
options.custom.programs.zen-browser = {
enable = mkOption {default = false;};
profile = mkOption {default = "default";};
};
config = mkIf cfg.enable {
@ -21,31 +22,69 @@ in {
programs.zen-browser = mkMerge [
(import ./.common.nix {
inherit config inputs lib pkgs;
# TODO: Revisit Zen themes
profile = cfg.profile;
theme = false;
})
{
enable = true;
profiles.default = {
profiles.${cfg.profile} = {
settings = {
"zen.browser.is-cool" = true;
"zen.essentials.enabled" = true;
"zen.glance.activation-method" = "alt";
"zen.glance.enabled" = true;
"zen.glance.open-essential-external-links" = true;
"zen.keyboard.shortcuts.disable-mainkeyset-clear" = true;
"zen.keyboard.shortcuts.enabled" = true;
"zen.mediacontrols.enabled" = false;
"zen.pinned-tab-manager.close-shortcut-behavior" = "reset-unload-switch";
"zen.pinned-tab-manager.restore-pinned-tabs-to-pinned-url" = false;
"zen.splitView.change-on-hover" = true;
"zen.splitView.enable-tab-drop" = true;
"zen.startup.smooth-scroll-in-tabs" = true;
"zen.tab-unloader.enabled" = false;
"zen.tab-unloader.timeout-minutes" = 60;
"zen.tabs.dim-pending" = true;
"zen.tabs.rename-tabs" = true;
"zen.tabs.show-newtab-vertical" = true;
"zen.tabs.vertical" = true;
"zen.tabs.vertical.right-side" = false;
"zen.theme.accent-color" = "#d33682";
"zen.theme.color-prefs.colorful" = false;
"zen.theme.color-prefs.use-workspace-colors" = true;
"zen.theme.color-prefs.colorful" = true;
"zen.theme.color-prefs.use-workspace-colors" = false;
"zen.theme.essentials-favicon-bg" = true;
"zen.theme.gradient" = true;
"zen.theme.gradient.show-custom-colors" = true;
"zen.theme.pill-button" = true;
"zen.themes.updated-value-observer" = true;
"zen.urlbar.behavior" = "normal";
"zen.urlbar.hide-one-offs" = true;
"zen.urlbar.replace-newtab" = false;
"zen.urlbar.show-domain-only-in-sidebar" = true;
"zen.urlbar.show-protections-icon" = false;
"zen.view.compact.animate-sidebar" = true;
"zen.view.compact.color-sidebar" = true;
"zen.view.compact.color-toolbar" = true;
"zen.view.compact.hide-tabbar" = true;
"zen.view.compact.hide-toolbar" = true;
"zen.view.show-newtab-button-top" = false;
"zen.view.compact.show-sidebar-and-toolbar-on-hover" = true;
"zen.view.compact.toolbar-flash-popup" = true;
# BUG: Rounded corners causes increased GPU usage
# https://github.com/zen-browser/desktop/issues/6302
# https://zen-browser.app/mods/c6813222-6571-4ba6-8faf-58f3343324f6/
"zen.view.experimental-rounded-view" = false;
"zen.view.grey-out-inactive-windows" = false;
"zen.view.hide-window-controls" = true;
"zen.view.show-newtab-button-border-top" = true;
"zen.view.show-newtab-button-top" = true;
"zen.view.sidebar-collapsed.hide-mute-button" = true;
"zen.view.sidebar-expanded" = true;
"zen.view.use-single-toolbar" = false;
"zen.watermark.enabled" = true;
"zen.welcome-screen.enabled" = false;
"zen.welcome-screen.seen" = true;
"zen.workspaces.container-specific-essentials-enabled" = false;
@ -53,8 +92,11 @@ in {
"zen.workspaces.hide-deactivated-workspaces" = true;
"zen.workspaces.hide-default-container-indicator" = false;
"zen.workspaces.individual-pinned-tabs" = true;
"zen.workspaces.open-new-tab-if-last-unpinned-tab-is-closed" = true;
"zen.workspaces.show-icon-strip" = false;
"zen.workspaces.show-workspace-indicator" = true;
"zen.workspaces.show-workspace-indicator" = false;
"zen.workspaces.swipe-actions" = true;
"zen.workspaces.wrap-around-navigation" = true;
};
};
}
@ -79,10 +121,8 @@ in {
".zen/profiles.ini".force = true;
#!! Imperative synced files
".zen/default/extension-preferences.json" = sync "linux/config/firefox/extension-preferences.json";
".zen/default/extension-settings.json" = sync "linux/config/firefox/extension-settings.json";
".zen/default/zen-keyboard-shortcuts.json" = sync "linux/config/zen/zen-keyboard-shortcuts.json";
".zen/default/zen-themes.json" = sync "linux/config/zen/zen-themes.json";
".zen/${cfg.profile}/zen-keyboard-shortcuts.json" = sync "linux/config/zen/zen-keyboard-shortcuts.json";
".zen/${cfg.profile}/zen-themes.json" = sync "linux/config/zen/zen-themes.json";
};
};
}