feat(browser): move to zen

This commit is contained in:
2025-06-02 16:35:53 +08:00
parent 2d85716642
commit 2fdf5aa8fe
8 changed files with 88 additions and 12 deletions

View File

@@ -12,6 +12,7 @@ lib.my.makeSwitch {
firefox.enable = true;
librewolf.enable = true;
chromium.enable = true;
zen.enable = true;
};
};
}

View File

@@ -50,5 +50,8 @@ lib.my.makeHomeProgramConfig {
"--wayland-text-input-version=3"
];
};
my.persist.homeDirs = [
".config/chromium"
];
};
}

View File

@@ -4,5 +4,6 @@
./firefox.nix
./librewolf.nix
./chromium.nix
./zen.nix
];
}

View File

@@ -0,0 +1,29 @@
{
config,
lib,
pkgs,
...
}:
lib.my.makeHomeProgramConfig {
inherit config;
programName = "zen-browser";
optionPath = [
"desktop"
"browser"
"zen"
];
extraConfig = {
my.home.programs.zen-browser = {
enable = true;
nativeMessagingHosts = [ pkgs.firefoxpwa ];
policies = {
# find more options here: https://mozilla.github.io/policy-templates/
DisableAppUpdate = true;
DisableTelemetry = true;
};
};
my.persist.homeDirs = [
".zen"
];
};
}

View File

@@ -66,7 +66,7 @@
draw-border-with-background = false;
}
{
matches = [ { app-id = "kitty|foot|Alacritty|ghostty|chromium-browser|wofi"; } ];
matches = [ { app-id = "kitty|foot|Alacritty|ghostty|chromium-browser|zen-beta|wofi"; } ];
opacity = 0.8;
}
{
@@ -125,7 +125,7 @@
"kitty"
"-1"
];
"Mod+G".action.spawn = [ "chromium" ];
"Mod+G".action.spawn = [ "zen-beta" ];
"Mod+E".action.spawn = [ "nemo" ];
"Mod+R".action.spawn = [
"sh"
@@ -159,7 +159,7 @@
action.spawn = [
"playerctl"
"-i"
"firefox,chromium"
"firefox,chromium,zen"
"play-pause"
];
};
@@ -168,7 +168,7 @@
action.spawn = [
"playerctl"
"-i"
"firefox,chromium"
"firefox,chromium,zen"
"next"
];
};
@@ -177,7 +177,7 @@
action.spawn = [
"playerctl"
"-i"
"firefox,chromium"
"firefox,chromium,zen"
"previous"
];
};