zen: overhaul configuration
Declaratively configure plugin installation and configuration. Use my own self-hosted sync server.
This commit is contained in:
164
home-manager/progs/zen/dark-reader.nix
Normal file
164
home-manager/progs/zen/dark-reader.nix
Normal file
@@ -0,0 +1,164 @@
|
||||
# Dark Reader extension settings
|
||||
# Addon ID: addon@darkreader.org
|
||||
{ lib }:
|
||||
let
|
||||
defaultTheme = {
|
||||
mode = 1;
|
||||
brightness = 100;
|
||||
contrast = 100;
|
||||
grayscale = 0;
|
||||
sepia = 0;
|
||||
useFont = false;
|
||||
fontFamily = "Open Sans";
|
||||
textStroke = 0;
|
||||
engine = "dynamicTheme";
|
||||
stylesheet = "";
|
||||
darkSchemeBackgroundColor = "#181a1b";
|
||||
darkSchemeTextColor = "#e8e6e3";
|
||||
lightSchemeBackgroundColor = "#dcdad7";
|
||||
lightSchemeTextColor = "#181a1b";
|
||||
scrollbarColor = "";
|
||||
selectionColor = "auto";
|
||||
styleSystemControls = false;
|
||||
lightColorScheme = "Default";
|
||||
darkColorScheme = "Default";
|
||||
immediateModify = false;
|
||||
};
|
||||
|
||||
mkCustomTheme =
|
||||
{
|
||||
url,
|
||||
engine ? defaultTheme.engine,
|
||||
builtIn ? false,
|
||||
}:
|
||||
{
|
||||
inherit url;
|
||||
theme = defaultTheme // {
|
||||
inherit engine;
|
||||
};
|
||||
}
|
||||
// lib.optionalAttrs builtIn { inherit builtIn; };
|
||||
in
|
||||
{
|
||||
force = true;
|
||||
settings = {
|
||||
enabled = true;
|
||||
fetchNews = true;
|
||||
syncSettings = true;
|
||||
syncSitesFixes = false;
|
||||
changeBrowserTheme = false;
|
||||
enabledByDefault = false;
|
||||
enableForPDF = true;
|
||||
enableForProtectedPages = false;
|
||||
enableContextMenus = false;
|
||||
detectDarkTheme = true;
|
||||
previewNewDesign = false;
|
||||
previewNewestDesign = false;
|
||||
|
||||
theme = defaultTheme;
|
||||
|
||||
enabledFor = [
|
||||
"search.nixos.org"
|
||||
"quizlet.com"
|
||||
"claude.ai"
|
||||
];
|
||||
|
||||
disabledFor = [
|
||||
"cinny.envs.net"
|
||||
"element.envs.net"
|
||||
"mail.proton.me"
|
||||
"mail.google.com"
|
||||
"www.gardling.com"
|
||||
"projects.fivethirtyeight.com"
|
||||
"secure.bankofamerica.com"
|
||||
"billpay-ui.bankofamerica.com"
|
||||
"plus.pearson.com"
|
||||
"immich.gardling.com"
|
||||
"huggingface.co"
|
||||
"session.masteringphysics.com"
|
||||
"brainly.com"
|
||||
"www.270towin.com"
|
||||
"phet.colorado.edu"
|
||||
"8042-1.portal.athenahealth.com"
|
||||
"torrent.gardling.com"
|
||||
"nssb-p.adm.fit.edu"
|
||||
"mail.openbenchmarking.org"
|
||||
"moneroocean.stream"
|
||||
"app.diagrams.net"
|
||||
"books.gw-project.org"
|
||||
"chat.deepseek.com"
|
||||
"n21.ultipro.com"
|
||||
"www.egaroucid.nyanyan.dev"
|
||||
"bitmagnet.gardling.com"
|
||||
"frame.work"
|
||||
"www.altcancer.net"
|
||||
"jenkins.jpenilla.xyz"
|
||||
"soulseek.gardling.com"
|
||||
"discord.com"
|
||||
"www.lufthansa.com"
|
||||
"surveys.hyundaicx.com"
|
||||
"www.apple.com"
|
||||
"docs.google.com"
|
||||
"marcuspork.com"
|
||||
"en.akinator.com"
|
||||
"www.reddit.com"
|
||||
"terra.layoutit.com"
|
||||
"www.ebay.com"
|
||||
"www.nytimes.com"
|
||||
"app.electricitymaps.com"
|
||||
"www.revoy.com"
|
||||
"kagi.com"
|
||||
"www.bhphotovideo.com"
|
||||
"survey.stackoverflow.co"
|
||||
"www.google.com"
|
||||
"en.wikipedia.org"
|
||||
"workforcenow.adp.com"
|
||||
"app.element.io"
|
||||
"www.desmos.com"
|
||||
"en.wiktionary.org"
|
||||
"dariandean0.github.io"
|
||||
];
|
||||
|
||||
customThemes = [
|
||||
(mkCustomTheme {
|
||||
url = [ "*.officeapps.live.com" ];
|
||||
engine = "cssFilter";
|
||||
builtIn = true;
|
||||
})
|
||||
(mkCustomTheme {
|
||||
url = [ "*.sharepoint.com" ];
|
||||
engine = "cssFilter";
|
||||
builtIn = true;
|
||||
})
|
||||
(mkCustomTheme {
|
||||
url = [ "docs.google.com" ];
|
||||
engine = "cssFilter";
|
||||
builtIn = true;
|
||||
})
|
||||
(mkCustomTheme {
|
||||
url = [ "onedrive.live.com" ];
|
||||
engine = "cssFilter";
|
||||
builtIn = true;
|
||||
})
|
||||
(mkCustomTheme {
|
||||
url = [ "huggingface.co" ];
|
||||
engine = "svgFilter";
|
||||
})
|
||||
(mkCustomTheme {
|
||||
url = [ "www.last.fm" ];
|
||||
engine = "svgFilter";
|
||||
})
|
||||
];
|
||||
|
||||
automation = {
|
||||
enabled = false;
|
||||
mode = "";
|
||||
behavior = "OnOff";
|
||||
};
|
||||
|
||||
time = {
|
||||
activation = "18:00";
|
||||
deactivation = "9:00";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user