1
1
Fork 0

zen: modify config

This commit is contained in:
Myned 2025-04-01 18:33:38 -05:00
parent 716107b4df
commit e82eb62686
Signed by: myned
GPG key ID: C7224454F7881A34

View file

@ -7,6 +7,7 @@
}:
with lib; let
cfg = config.custom.programs.zen-browser;
hm = config.home-manager.users.${config.custom.username};
in {
options.custom.programs.zen-browser = {
enable = mkOption {default = false;};
@ -31,7 +32,7 @@ in {
profiles.default = {
settings = {
"zen.pinned-tab-manager.close-shortcut-behavior" = "reset-unload-switch";
"zen.pinned-tab-manager.restore-pinned-tabs-to-pinned-url" = true;
"zen.pinned-tab-manager.restore-pinned-tabs-to-pinned-url" = false;
"zen.splitView.change-on-hover" = true;
"zen.tab-unloader.enabled" = false;
"zen.tab-unloader.timeout-minutes" = 60;
@ -39,6 +40,7 @@ in {
"zen.theme.color-prefs.colorful" = false;
"zen.theme.color-prefs.use-workspace-colors" = true;
"zen.theme.pill-button" = true;
"zen.urlbar.behavior" = "normal";
"zen.urlbar.replace-newtab" = false;
"zen.view.compact.hide-toolbar" = true;
"zen.view.show-newtab-button-top" = false;
@ -49,9 +51,10 @@ in {
"zen.workspaces.container-specific-essentials-enabled" = false;
"zen.workspaces.force-container-workspace" = true;
"zen.workspaces.hide-deactivated-workspaces" = true;
"zen.workspaces.hide-default-container-indicator" = false;
"zen.workspaces.individual-pinned-tabs" = true;
"zen.workspaces.show-icon-strip" = true;
"zen.workspaces.show-workspace-indicator" = false;
"zen.workspaces.show-icon-strip" = false;
"zen.workspaces.show-workspace-indicator" = true;
};
};
}
@ -60,7 +63,7 @@ in {
home = {
activation = {
# HACK: Zen only recognizes profiles that include the ZenAvatarPath key
update-zen-browser-profile = lib.home-manager.hm.dag.entryAfter ["writeBoundary"] ''
update-zen-browser-profile = hm.lib.dag.entryAfter ["writeBoundary"] ''
run sed -i \
's|\[Profile\([0-9]*\)\]|[Profile\1]\nZenAvatarPath=chrome://browser/content/zen-avatars/avatar-95.svg|' \
"$HOME/.zen/profiles.ini"