From 6b2fcdd03a5e738f349c9cfee926cf65165c60de Mon Sep 17 00:00:00 2001
From: Myned <dev@bjork.tech>
Date: Wed, 26 Mar 2025 20:56:16 -0500
Subject: [PATCH] search: add forums engine

---
 options/custom/menus/walker/search.sh | 6 ++++++
 options/custom/programs/chromium.nix  | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/options/custom/menus/walker/search.sh b/options/custom/menus/walker/search.sh
index c8be6ba..8596dc4 100644
--- a/options/custom/menus/walker/search.sh
+++ b/options/custom/menus/walker/search.sh
@@ -44,6 +44,12 @@ case "$1" in
     url="https://github.com/element-hq/element-web/issues?q=is%3Aissue+is%3Aopen+"
     query="${1:3}"
     ;;
+  'f '*)
+    label="Forums"
+    icon="plasma-search"
+    url="https://kagi.com/search?l=3&q="
+    query="${1:2}"
+    ;;
   'fh '*)
     label="Flathub"
     icon="application-vnd.flatpak"
diff --git a/options/custom/programs/chromium.nix b/options/custom/programs/chromium.nix
index 5f895da..26f200d 100644
--- a/options/custom/programs/chromium.nix
+++ b/options/custom/programs/chromium.nix
@@ -112,6 +112,12 @@ in {
             url = "https://chromewebstore.google.com/search/{searchTerms}";
           }
 
+          {
+            name = "Forums";
+            shortcut = "f";
+            url = "https://kagi.com/search?l=3&q={searchTerms}";
+          }
+
           {
             name = "Flathub";
             shortcut = "fh";