From 2e00833e2def0b62b4fbb07df2451099bb629622 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Thu, 4 Jul 2024 22:41:48 -0400 Subject: [PATCH] aly/firefox: add wiktionary search + alias --- homes/aly/firefox/default.nix | 38 ++++++++++++++++++++++------------ homes/aly/firefox/kagi.png | Bin 260 -> 0 bytes 2 files changed, 25 insertions(+), 13 deletions(-) delete mode 100644 homes/aly/firefox/kagi.png diff --git a/homes/aly/firefox/default.nix b/homes/aly/firefox/default.nix index 9bd5278d..2023bf00 100644 --- a/homes/aly/firefox/default.nix +++ b/homes/aly/firefox/default.nix @@ -38,6 +38,13 @@ default = "Brave"; force = true; engines = { + "Bing" = { + metaData = { + hidden = true; + alias = "!bing"; + }; + }; + "Brave" = { definedAliases = ["!brave"]; icon = "${pkgs.brave}/share/icons/hicolor/24x24/apps/brave-browser.png"; @@ -55,9 +62,17 @@ ]; }; + "Google" = { + metaData = { + hidden = true; + alias = "!google"; + }; + }; + "Kagi" = { definedAliases = ["!kagi"]; - icon = ./kagi.png; + iconUpdateURL = "https://kagi.com/favicon.ico"; + updateInterval = 24 * 60 * 60 * 1000; # every day urls = [ { @@ -93,18 +108,15 @@ ]; }; - "Bing" = { - metaData = { - hidden = true; - alias = "!bing"; - }; - }; - - "Google" = { - metaData = { - hidden = true; - alias = "!google"; - }; + "Wiktionary" = { + urls = [ + { + template = "https://en.wiktionary.org/wiki/{searchTerms}"; + } + ]; + iconUpdateURL = "https://en.wiktionary.org/favicon.ico"; + updateInterval = 24 * 60 * 60 * 1000; # every day + definedAliases = ["!wikt"]; }; }; }; diff --git a/homes/aly/firefox/kagi.png b/homes/aly/firefox/kagi.png deleted file mode 100644 index 1ba9bc3122f8b1f8693978c3373e06544a2678e1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 260 zcmV+f0sH=mP)OSA4N-h$8ba*qG>DkFE)fR& z-Gp%Rj%LaKYinVABEw)xHb^lhZi*+$094yLk|qB)#KGi9G~oMM$^SprLGaJ@WEg;n z2^xUFsXmhbZ4D*=CwfZ$FAA0X?`(?O5TbLUt2xM9)Xk9-KzaeSB57Y4^p^1e0000< KMNUMnLSTZkIcgFB