mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
tree-wide: remove zen-browser
npins: remove zen-browser The fucked up https://github.com/zen-browser/desktop/discussions/12025
This commit is contained in:
parent
1047642bdf
commit
76b34bb277
5 changed files with 1 additions and 253 deletions
|
|
@ -141,7 +141,7 @@ in
|
|||
"x-scheme-handler/unknown" = "firefox.desktop";
|
||||
};
|
||||
in
|
||||
lib.mkIf (cfg.enable && !config.programs.zen-browser.enable) {
|
||||
lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
associations.added = associations;
|
||||
defaultApplications = associations;
|
||||
|
|
|
|||
|
|
@ -1,68 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.programs.zen-browser;
|
||||
|
||||
firefoxCfg = config.programs.firefox;
|
||||
in
|
||||
{
|
||||
programs.zen-browser = {
|
||||
policies = firefoxCfg.policies;
|
||||
|
||||
# "locked" semantic from zen (doesn't seem to be doing anything, attempted for zen-twilight 1.18t)
|
||||
# https://github.com/0xc000022070/zen-browser-flake/tree/main#preferences
|
||||
#
|
||||
# To check which option is mapped to which about:config
|
||||
# - back preference file
|
||||
# cp .zen/default/prefs.js{,.bk}
|
||||
# - click the buttons
|
||||
# - diff it
|
||||
# diff .zen/default/prefs.js{.bk,}
|
||||
profiles.default = lib.mkMerge [
|
||||
firefoxCfg.profiles.default
|
||||
{
|
||||
# Zen specific
|
||||
settings = {
|
||||
"zen.theme.content-element-separation" = 0; # Remove "borders" around window
|
||||
"zen.tabs.show-newtab-vertical" = false;
|
||||
"zen.view.compact.toolbar-flash-popup" = true;
|
||||
"zen.view.show-newtab-button-top" = false;
|
||||
"zen.view.use-single-toolbar" = false;
|
||||
"zen.tabs.ctrl-tab.ignore-pending-tabs" = true; # ctrl-tab ignore unloaded tabs
|
||||
|
||||
# https://github.com/zen-browser/desktop/discussions/12025
|
||||
# This makes tabs sync across windows, which as annoying af
|
||||
"zen.window-sync.enabled" = false;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
xdg.mimeApps =
|
||||
let
|
||||
associations = lib.genAttrs [
|
||||
"application/x-extension-shtml"
|
||||
"application/x-extension-xhtml"
|
||||
"application/x-extension-html"
|
||||
"application/x-extension-xht"
|
||||
"application/x-extension-htm"
|
||||
# "x-scheme-handler/unknown"
|
||||
# "x-scheme-handler/mailto"
|
||||
"x-scheme-handler/chrome"
|
||||
"x-scheme-handler/about"
|
||||
"x-scheme-handler/https"
|
||||
"x-scheme-handler/http"
|
||||
"application/xhtml+xml"
|
||||
# "application/json"
|
||||
# "text/plain"
|
||||
"text/html"
|
||||
] (_: cfg.package.meta.desktopFileName);
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
associations.added = associations;
|
||||
defaultApplications = associations;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue