about summary refs log tree commit diff stats
path: root/home-manager/config/firefox/default.nix
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-03-11 10:33:02 +0100
committerene <ene@sils.li>2023-03-11 11:23:59 +0100
commite25fb6c99dd0775b4c61da448d4f11b92231eee2 (patch)
tree2883b0fc25a2ab9048e0c0fda74148e7ffb24b26 /home-manager/config/firefox/default.nix
parentFix(hm/conf/firefox): Remove not needed variable (diff)
downloadnixos-config-e25fb6c99dd0775b4c61da448d4f11b92231eee2.tar.gz
nixos-config-e25fb6c99dd0775b4c61da448d4f11b92231eee2.zip
Feat(hm/conf/firefox): Turn many bookmarks in search engines
Diffstat (limited to 'home-manager/config/firefox/default.nix')
-rw-r--r--home-manager/config/firefox/default.nix90
1 files changed, 42 insertions, 48 deletions
diff --git a/home-manager/config/firefox/default.nix b/home-manager/config/firefox/default.nix
index c9063caf..d07895a6 100644
--- a/home-manager/config/firefox/default.nix
+++ b/home-manager/config/firefox/default.nix
@@ -150,38 +150,58 @@ in {
         engines = {
           "Brave Search" = {
             urls = [{template = "https://search.brave.com/search?q={searchTerms}";}];
-            iconUpdateURL = "https://cdn.search.brave.com/serp/v1/static/brand/8eabe183f0d1f2cb3e2916b7b20c310efd196d740c8cecd341732fcd396fb665-apple-touch-icon.png";
-            updateInterval = 24 * 60 * 60 * 1000; # every day
+            iconUpdateURL = "https://raw.githubusercontent.com/brave/brave-core/master/components/brave_welcome_ui/components/images/lion_logo.svg";
+            updateInterval = 24; # every day
             definedAliases = ["@bs"];
           };
 
+          # NIX
           "Nix Packages" = {
-            urls = [
-              {
-                template = "https://search.nixos.org/packages";
-                params = [
-                  {
-                    name = "type";
-                    value = "packages";
-                  }
-                  {
-                    name = "query";
-                    value = "{searchTerms}";
-                  }
-                ];
-              }
-            ];
-
+            urls = [{template = "https://search.nixos.org/packages?type=packages&query={searchTerms}";}];
             icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
             definedAliases = ["@np"];
           };
-
+          "Nix Options" = {
+            urls = [{template = "https://search.nixos.org/options?type=options&query={searchTerms}";}];
+            icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
+            definedAliases = ["@no"];
+          };
           "NixOS Wiki" = {
             urls = [{template = "https://nixos.wiki/index.php?search={searchTerms}";}];
-            iconUpdateURL = "https://nixos.wiki/favicon.png";
-            updateInterval = 24 * 60 * 60 * 1000; # every day
+            icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
             definedAliases = ["@nw"];
           };
+
+          "Arch Wiki" = {
+            urls = [{template = "https://wiki.archlinux.org/index.php?search={searchTerms}";}];
+            iconUpdateURL = "https://upload.wikimedia.org/wikipedia/commons/a/a5/Archlinux-icon-crystal-64.svg";
+            updateInterval = 24;
+            definedAliases = ["@aw"];
+          };
+
+          # RUST
+          "Rust std" = {
+            urls = [{template = "https://doc.rust-lang.org/std/?search={searchTerms}";}];
+            iconUpdateURL = "https://rustacean.net/assets/rustacean-orig-noshadow.svg";
+            updateInterval = 24;
+            definedAliases = ["@rs"];
+          };
+
+          "Google Scholar" = {
+            urls = [{template = "https://scholar.google.com/scholar?hl=en&q={searchTerms}";}];
+            iconUpdateURL = "https://scholar.google.com/favicon.ico";
+            updateInterval = 24;
+            definedAliases = ["@gs"];
+          };
+          "Wikipedia" = {
+            urls = [{template = "https://en.wikipedia.org/wiki/{searchTerms}";}];
+            iconUpdateURL = "https://upload.wikimedia.org/wikipedia/en/8/80/Wikipedia-logo-v2.svg";
+            updateInterval = 24;
+            definedAliases = ["@wp"];
+          };
+
+          "Wikipedia (en)".metaData.hidden = true;
+          "DuckDuckGo".metaData.hidden = true;
           "Bing".metaData.hidden = true;
           "Google".metaData.hidden = true;
           "Amazon.de".metaData.hidden = true;
@@ -190,40 +210,14 @@ in {
 
       bookmarks = [
         {
-          name = "Rust::std";
-          # TODO
-          url = "file:///home/dt/.local/share/rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/std/all.html";
-        }
-
-        {
           name = "Feed - Piped";
-          url = "https://piped.kavin.rocks/feed";
+          url = "https://piped.video/feed";
         }
 
         {
           name = "DeepL Translate";
           url = "https://www.deepl.com/translator#en/de/test";
         }
-
-        {
-          name = "Google Scholar";
-          url = "https://scholar.google.com/";
-        }
-
-        {
-          name = "ArchWiki";
-          url = "https://wiki.archlinux.org/";
-        }
-
-        {
-          name = "Arch Package ";
-          url = "https://archlinux.org/packages/";
-        }
-
-        {
-          name = "layout.css.devPixelsPerPx";
-          url = "about:config";
-        }
       ];
       inherit settings;
       extraConfig = builtins.readFile "${user_js_nix}/user.js";