From a36f3890f367d154293069f9296dd70913ab0135 Mon Sep 17 00:00:00 2001 From: cswimr Date: Wed, 18 Dec 2024 15:04:51 -0500 Subject: [PATCH] add github search engine --- home-manager/browser.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/home-manager/browser.nix b/home-manager/browser.nix index fb89145..88469ed 100644 --- a/home-manager/browser.nix +++ b/home-manager/browser.nix @@ -62,10 +62,11 @@ in order = [ "DuckDuckGo" "Google (udm14)" + "GitHub" + "ProtonDB" "Nix Packages" "Nix Options" "NixOS Wiki" - "ProtonDB" "Modrinth Mods" "Modrinth Modpacks" "Modrinth Plugins" @@ -85,7 +86,6 @@ in "@g" "@google" "@udm14" - "udm14" ]; }; "Nix Packages" = { @@ -107,8 +107,6 @@ in icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; definedAliases = [ "@np" - "pkgs" - "pkg" ]; }; "Nix Options" = { @@ -130,8 +128,6 @@ in icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; definedAliases = [ "@no" - "opts" - "opt" ]; }; "NixOS Wiki" = { @@ -139,7 +135,14 @@ in icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; definedAliases = [ "@nw" - "nix" + ]; + }; + "GitHub" = { + urls = [ { template = "https://github.com/search?q={searchTerms}"; } ]; + iconUpdateURL = "https://github.com/favicon.ico"; + updateInterval = 24 * 60 * 60 * 1000; # every day + definedAliases = [ + "@gh" ]; }; "ProtonDB" = { @@ -148,7 +151,6 @@ in updateInterval = 24 * 60 * 60 * 1000; # every day definedAliases = [ "@pd" - "proton" ]; }; "Modrinth Mods" = {