Update bookmarks.json, fix them not being set properly

This commit is contained in:
Evie Litherland-Smith 2024-05-12 15:48:16 +01:00
parent c9cbeabec3
commit 94bd059ab6
4 changed files with 67 additions and 76 deletions

View file

@ -1,29 +1,32 @@
[ [
{ {
"name": "Messaging", "name": "Social",
"bookmarks": [ "bookmarks": [
{ "name": "WhatApp Web", "url": "https://web.whatsapp.com/" }, { "name": "WhatApp Web", "url": "https://web.whatsapp.com/" },
{ "name": "Discord", "url": "https://discord.com/app" }, { "name": "Discord", "url": "https://discord.com/app" },
{ { "name": "Mastodon", "url": "https://tech.lgbt" }
"name": "Teams",
"url": "https://teams.microsoft.com/v2",
"tags": ["work"]
}
] ]
}, },
{ {
"name": "Development", "name": "Travel",
"bookmarks": [{ "name": "ABRP", "url": "https://abetterrouteplanner.com/" }]
},
{
"name": "Software",
"bookmarks": [
{
"name": "Git",
"bookmarks": [ "bookmarks": [
{ {
"name": "Forgejo", "name": "Forgejo",
"url": "https://git.xenia.me.uk", "url": "https://git.xenia.me.uk",
"tags": ["server", "git"] "tags": ["personal"]
}, },
{ "name": "GitHub", "url": "https://github.com", "tags": ["git"] }, { "name": "GitHub", "url": "https://github.com" },
{ {
"name": "CCFE GitLab", "name": "CCFE GitLab",
"url": "https://git.ccfe.ac.uk", "url": "https://git.ccfe.ac.uk",
"tags": ["work", "git"] "tags": ["work"]
} }
] ]
}, },
@ -32,7 +35,6 @@
"bookmarks": [ "bookmarks": [
{ {
"name": "Nix", "name": "Nix",
"toolbar": true,
"bookmarks": [ "bookmarks": [
{ {
"name": "NixOS and Flakes", "name": "NixOS and Flakes",
@ -44,19 +46,32 @@
} }
] ]
}, },
{ "name": "Emacs", "bookmarks": [] },
{ "name": "Python", "bookmarks": [] },
{ "name": "Lua", "bookmarks": [] }
]
},
{ {
"name": "Awesome", "name": "Repositories",
"toolbar": true,
"bookmarks": [ "bookmarks": [
{ {
"name": "Awesome Emacs", "name": "Awesome Emacs",
"url": "https://github.com/emacs-tw/awesome-emacs" "url": "https://github.com/emacs-tw/awesome-emacs"
} }
] ]
}
]
}, },
{
"name": "Wikis",
"bookmarks": [
{
"name": "NixOS Wiki",
"url": "https://nixos.wiki"
},
{ "name": "Arch Wiki", "url": "https://wiki.archlinux.org" },
{ {
"name": "OpenWiki", "name": "OpenWiki",
"toolbar": true,
"bookmarks": [ "bookmarks": [
{ {
"name": "Homepage", "name": "Homepage",
@ -82,16 +97,11 @@
} }
] ]
}, },
{
"name": "Travel",
"bookmarks": [{ "name": "ABRP", "url": "https://abetterrouteplanner.com/" }]
},
{ {
"name": "Work", "name": "Work",
"bookmarks": [ "bookmarks": [
{ {
"name": "JET", "name": "JET",
"toolbar": true,
"bookmarks": [ "bookmarks": [
{ "name": "Homepage", "url": "http://w3.jet.uk" }, { "name": "Homepage", "url": "http://w3.jet.uk" },
{ {
@ -122,7 +132,6 @@
}, },
{ {
"name": "MAST-U", "name": "MAST-U",
"toolbar": true,
"bookmarks": [ "bookmarks": [
{ "name": "Users Page", "url": "https://users.mastu.ukaea.uk/home" }, { "name": "Users Page", "url": "https://users.mastu.ukaea.uk/home" },
{ {
@ -133,12 +142,15 @@
}, },
{ {
"name": "Office", "name": "Office",
"toolbar": true,
"bookmarks": [ "bookmarks": [
{ {
"name": "Outlook Calendar", "name": "Outlook Calendar",
"url": "https://outlook.office.com/calendar/view/workweek" "url": "https://outlook.office.com/calendar/view/workweek"
}, },
{
"name": "Teams",
"url": "https://teams.microsoft.com/v2"
},
{ {
"name": "OneDrive", "name": "OneDrive",
"url": "https://ukaeauk-my.sharepoint.com/personal/evie_litherland-smith_ukaea_uk/" "url": "https://ukaeauk-my.sharepoint.com/personal/evie_litherland-smith_ukaea_uk/"

View file

@ -7,7 +7,7 @@ lib: let
if (builtins.hasAttr "bookmarks" x) if (builtins.hasAttr "bookmarks" x)
then { then {
inherit (x) name; inherit (x) name;
toolbar = true; toolbar = false;
bookmarks = withTag { bookmarks = withTag {
inherit (x) bookmarks; inherit (x) bookmarks;
tags = [(builtins.toString x.name)] ++ tags; tags = [(builtins.toString x.name)] ++ tags;

View file

@ -24,7 +24,7 @@
DisableSetDesktopBackground = true; DisableSetDesktopBackground = true;
DisableSystemAddonUpdate = true; DisableSystemAddonUpdate = true;
DisableTelemetry = true; DisableTelemetry = true;
DisplayBookmarksToolbar = "never"; DisplayBookmarksToolbar = "always";
DisplayMenuBar = "default-off"; DisplayMenuBar = "default-off";
DontCheckDefaultBrowser = true; DontCheckDefaultBrowser = true;
EnableTrackingProtection = { EnableTrackingProtection = {
@ -73,7 +73,7 @@
StartPage = "homepage-locked"; StartPage = "homepage-locked";
}; };
NewTabPage = true; NewTabPage = true;
NoDefaultBookmarks = true; NoDefaultBookmarks = false;
OfferToSaveLogins = false; OfferToSaveLogins = false;
PasswordManagerEnabled = false; PasswordManagerEnabled = false;
PDFjs = {Enabled = false;}; PDFjs = {Enabled = false;};
@ -122,25 +122,19 @@
} }
]; ];
}; };
containers = {
personal = {
color = "purple";
icon = "fingerprint";
id = 0;
};
work = {
color = "blue";
icon = "briefcase";
id = 1;
};
};
search = { search = {
default = "DuckDuckGo"; default = "DuckDuckGo";
force = true; force = true;
order = ["DuckDuckGo"]; order = ["DuckDuckGo"];
engines = import ./search-engines.nix pkgs; engines = import ./search-engines/default.nix pkgs;
}; };
bookmarks = [
{
name = "toplevel";
toolbar = true;
bookmarks = import ./bookmarks/default.nix lib; bookmarks = import ./bookmarks/default.nix lib;
}
];
}; };
}; };
} }

View file

@ -3,25 +3,6 @@ pkgs: {
urls = [{template = "https://www.openstreetmap.org/search?query={searchTerms}";}]; urls = [{template = "https://www.openstreetmap.org/search?query={searchTerms}";}];
definedAliases = ["@om"]; definedAliases = ["@om"];
}; };
"NixOS Packages" = {
urls = [{template = "http://search.nixos.org/packages?channel=unstable&size=50&sort=relevance&type=packages&query={searchTerms}";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@np"];
};
"NixOS Options" = {
urls = [{template = "http://search.nixos.org/options?channel=unstable&size=50&sort=relevance&type=packages&query={searchTerms}";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@np"];
};
"Home Manager Options" = {
urls = [{template = "https://mipmip.github.io/home-manager-option-search/?query={searchTerms}";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@hm"];
};
"PyPI packages" = {
urls = [{template = "https://pypi.org/search/?q={searchTerms}";}];
definedAliases = ["@py"];
};
"NixOS Wiki" = { "NixOS Wiki" = {
urls = [{template = "https://nixos.wiki/index.php?search={searchTerms}";}]; urls = [{template = "https://nixos.wiki/index.php?search={searchTerms}";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
@ -35,9 +16,13 @@ pkgs: {
urls = [{template = "https://github.com/search?q={searchTerms}";}]; urls = [{template = "https://github.com/search?q={searchTerms}";}];
definedAliases = ["@gh"]; definedAliases = ["@gh"];
}; };
"MyNixOS" = { "NixOS Packages" = {
urls = [{template = "https://mynixos.com/search?q={searchTerms}";}]; urls = [{template = "http://search.nixos.org/packages?channel=unstable&size=50&sort=relevance&type=packages&query={searchTerms}";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@mn"]; definedAliases = ["@np"];
};
"PyPI packages" = {
urls = [{template = "https://pypi.org/search/?q={searchTerms}";}];
definedAliases = ["@py"];
}; };
} }