229 lines
6.4 KiB
Nix
229 lines
6.4 KiB
Nix
{
|
|
inputs,
|
|
libx,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
imports = [
|
|
inputs.zen.homeModules.beta
|
|
];
|
|
|
|
programs.zen-browser = {
|
|
enable = true;
|
|
nativeMessagingHosts = [ pkgs.tridactyl-native ];
|
|
languagePacks = ["en-US"];
|
|
policies = import ./policies.nix;
|
|
|
|
setAsDefaultBrowser = false;
|
|
enablePrivateDesktopEntry = true;
|
|
|
|
profiles.default = rec {
|
|
settings = {
|
|
"zen.workspaces.continue-where-left-off" = true;
|
|
"zen.workspaces.natural-scroll" = true;
|
|
"zen.view.compact.hide-tabbar" = true;
|
|
"zen.view.compact.hide-toolbar" = true;
|
|
"zen.view.compact.animate-sidebar" = false;
|
|
"zen.welcome-screen.seen" = true;
|
|
"zen.urlbar.behavior" = "float";
|
|
"zen.theme.accent_color" = "#282a36";
|
|
};
|
|
|
|
sine = {
|
|
enable = true;
|
|
mods = [
|
|
"253a3a74-0cc4-47b7-8b82-996a64f030d5" # Floating History
|
|
"4ab93b88-151c-451b-a1b7-a1e0e28fa7f8" # No Sidebar Scrollbar
|
|
"7190e4e9-bead-4b40-8f57-95d852ddc941" # Tab title fixes
|
|
"803c7895-b39b-458e-84f8-a521f4d7a064" # Hide Inactive Workspaces
|
|
"906c6915-5677-48ff-9bfc-096a02a72379" # Floating Status Bar
|
|
"a6335949-4465-4b71-926c-4a52d34bc9c0" # Better Find Bar
|
|
# "c6813222-6571-4ba6-8faf-58f3343324f6" # Disable Rounded Corners
|
|
"c8d9e6e6-e702-4e15-8972-3596e57cf398" # Zen Back Forward
|
|
"cb15abdb-0514-4e09-8ce5-722cf1f4a20f" # Hide Extension Name
|
|
# "d8b79d4a-6cba-4495-9ff6-d6d30b0e94fe" # Better Active Tab
|
|
"e122b5d9-d385-4bf8-9971-e137809097d0" # No Top Sites
|
|
"f7c71d9a-bce2-420f-ae44-a64bd92975ab" # Better Unloaded Tabs
|
|
"fd24f832-a2e6-4ce9-8b19-7aa888eb7f8e" # Quietify
|
|
"context-menu-icons"
|
|
"mod-floaty-ui"
|
|
];
|
|
};
|
|
|
|
# bookmarks = import ./bookmarks-config.nix {inherit libx lib;};
|
|
|
|
search = import ./search.nix {inherit pkgs;};
|
|
|
|
# liveFolders = {
|
|
# "Prisma blog" = {
|
|
# workspace = spaces."Rendezvous".id;
|
|
# kind = "rss";
|
|
# title = "Prisma blog";
|
|
# feedUrl = "https://www.prisma.io/blog/rss.xml";
|
|
# folderIcon = "https://www.prisma.io/favicon.ico";
|
|
# position = 400;
|
|
# maxItems = 3;
|
|
# collapsed = true;
|
|
# timeRange = 0;
|
|
# };
|
|
|
|
# "Oscar Liang" = {
|
|
# workspace = spaces."Rendezvous".id;
|
|
# kind = "rss";
|
|
# title = "Oscar Liang";
|
|
# feedUrl = "https://oscarliang.com/feed";
|
|
# folderIcon = "https://oscarliang.com/wp-content/uploads/2021/06/favicon.ico";
|
|
# position = 401;
|
|
# maxItems = 5;
|
|
# collapsed = true;
|
|
# timeRange = 0;
|
|
# };
|
|
# };
|
|
|
|
pinsForce = true;
|
|
pinsForceAction = "demote";
|
|
pins = let
|
|
stateDir = {
|
|
"State" = {
|
|
id = "482bc905-c00c-4c49-8a56-367668bf70b9";
|
|
workspace = spaces."Home".id;
|
|
folderIcon = "chrome://browser/skin/zen-icons/selectable/eye.svg";
|
|
isGroup = true;
|
|
isFolderCollapsed = true;
|
|
editedTitle = true;
|
|
position = 200;
|
|
};
|
|
};
|
|
in
|
|
{
|
|
"Nextcloud" = {
|
|
id = "d8494475-ed8d-4746-a867-54fa7700faf4";
|
|
url = "https://staff.tfcconnection.org";
|
|
workspace = spaces."Home".id;
|
|
position = 151;
|
|
};
|
|
}
|
|
// stateDir;
|
|
|
|
containersForce = true;
|
|
|
|
spacesForce = true;
|
|
spaces = {
|
|
"Home" = {
|
|
id = "572910e1-4468-4832-a869-0b3a93e2f165";
|
|
icon = "chrome://browser/skin/zen-icons/selectable/navigate.svg";
|
|
position = 1000;
|
|
theme = {
|
|
type = "gradient";
|
|
colors = [
|
|
{
|
|
red = 40;
|
|
green = 42;
|
|
blue = 54;
|
|
algorithm = "analogous";
|
|
type = "explicit-lightness";
|
|
lightness = 35;
|
|
position.x = 301;
|
|
position.y = 176;
|
|
primary = true;
|
|
custom = false;
|
|
}
|
|
{
|
|
red = 87;
|
|
green = 199;
|
|
blue = 255;
|
|
algorithm = "analogous";
|
|
type = "explicit-lightness";
|
|
lightness = 35;
|
|
position.x = 260;
|
|
position.y = 271;
|
|
primary = false;
|
|
custom = false;
|
|
}
|
|
{
|
|
red = 90;
|
|
green = 247;
|
|
blue = 142;
|
|
algorithm = "analogous";
|
|
type = "explicit-lightness";
|
|
lightness = 35;
|
|
position.x = 255;
|
|
position.y = 84;
|
|
primary = false;
|
|
custom = false;
|
|
}
|
|
];
|
|
opacity = 0.8;
|
|
texture = 0.2;
|
|
};
|
|
};
|
|
"Research" = {
|
|
id = "ec287d7f-d910-4860-b400-513f269dee77";
|
|
icon = "chrome://browser/skin/zen-icons/selectable/logo-rss.svg";
|
|
position = 1001;
|
|
theme = {
|
|
type = "gradient";
|
|
colors = [
|
|
{
|
|
red = 171;
|
|
green = 219;
|
|
blue = 227;
|
|
algorithm = "floating";
|
|
type = "explicit-lightness";
|
|
}
|
|
];
|
|
opacity = 0.2;
|
|
texture = 0.5;
|
|
};
|
|
};
|
|
};
|
|
|
|
keyboardShortcutsVersion = 19;
|
|
keyboardShortcuts = [
|
|
{
|
|
id = "zen-compact-mode-toggle";
|
|
key = "c";
|
|
modifiers.control = true;
|
|
modifiers.alt = true;
|
|
}
|
|
{
|
|
id = "zen-toggle-sidebar";
|
|
key = "x";
|
|
modifiers.control = true;
|
|
modifiers.alt = true;
|
|
}
|
|
{
|
|
id = "key_savePage";
|
|
key = "s";
|
|
modifiers.control = true;
|
|
}
|
|
{
|
|
id = "key_quitApplication";
|
|
disabled = true;
|
|
}
|
|
{
|
|
id = "zen-copy-url";
|
|
disabled = true;
|
|
}
|
|
{
|
|
id = "addBookmarkAsKb";
|
|
disabled = true;
|
|
}
|
|
{
|
|
id = "key_reload";
|
|
key = "r";
|
|
modifiers.control = true;
|
|
}
|
|
{
|
|
id = "key_reload_skip_cache";
|
|
key = "r";
|
|
modifiers = {
|
|
control = true;
|
|
shift = true;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|