From b0eee4c89cd3e78d07ec52d00302d8abc4f4f1de Mon Sep 17 00:00:00 2001 From: Myned Date: Fri, 10 Jan 2025 10:31:00 -0600 Subject: [PATCH] search: add kagi engine Signed-off-by: Myned --- options/custom/programs/chromium.nix | 6 ++++++ options/custom/programs/firefox.nix | 7 +++++++ options/custom/programs/walker/search.sh | 6 ++++++ 3 files changed, 19 insertions(+) diff --git a/options/custom/programs/chromium.nix b/options/custom/programs/chromium.nix index ac07e47..25696aa 100644 --- a/options/custom/programs/chromium.nix +++ b/options/custom/programs/chromium.nix @@ -138,6 +138,12 @@ in { url = "https://github.com/i3/i3/issues?q=is%3Aissue+is%3Aopen+{searchTerms}"; } + { + name = "Kagi"; + shortcut = "k"; + url = "https://kagi.com?q={searchTerms}"; + } + { name = "Lutris"; shortcut = "l"; diff --git a/options/custom/programs/firefox.nix b/options/custom/programs/firefox.nix index 2d293e7..7f58e0f 100644 --- a/options/custom/programs/firefox.nix +++ b/options/custom/programs/firefox.nix @@ -353,6 +353,13 @@ in { URLTemplate = "https://github.com/i3/i3/issues?q=is%3Aissue+is%3Aopen+{searchTerms}"; } + { + Name = "Kagi"; + Alias = "k"; + IconURL = "https://kagi.com/asset/v2/favicon-32x32.png"; + URLTemplate = "https://kagi.com?q={searchTerms}"; + } + { Name = "Lutris"; Alias = "l"; diff --git a/options/custom/programs/walker/search.sh b/options/custom/programs/walker/search.sh index fc831fc..c175e7a 100644 --- a/options/custom/programs/walker/search.sh +++ b/options/custom/programs/walker/search.sh @@ -86,6 +86,12 @@ case "$1" in url="https://github.com/i3/i3/issues?q=is%3Aissue+is%3Aopen+" query="${1:3}" ;; + 'k '*) + label="Kagi" + icon="kagi" + url="https://kagi.com?q=" + query="${1:2}" + ;; 'l '*) label="Lutris" icon="lutris"