diff options
author | Soispha <soispha@vhack.eu> | 2024-02-20 18:37:45 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2024-02-20 18:37:45 +0100 |
commit | d3ae26842ec1eb79f9da0c478c1a6586ad349539 (patch) | |
tree | 452b2acc372d9e44260b09d52e2530774fbf141c /hm/soispha/conf/firefox/config/search/engines/default.nix | |
parent | chore(version): v1.28.0 (diff) | |
download | nixos-config-d3ae26842ec1eb79f9da0c478c1a6586ad349539.zip |
refactor(hm/conf/firefox/config/search): Download icons to avoid losing them
Diffstat (limited to 'hm/soispha/conf/firefox/config/search/engines/default.nix')
-rw-r--r-- | hm/soispha/conf/firefox/config/search/engines/default.nix | 38 |
1 files changed, 17 insertions, 21 deletions
diff --git a/hm/soispha/conf/firefox/config/search/engines/default.nix b/hm/soispha/conf/firefox/config/search/engines/default.nix index 7cbf5bb8..27f66c9d 100644 --- a/hm/soispha/conf/firefox/config/search/engines/default.nix +++ b/hm/soispha/conf/firefox/config/search/engines/default.nix @@ -1,8 +1,8 @@ {pkgs, ...}: { + # DEFAULT "Brave Search" = { urls = [{template = "https://search.brave.com/search?q={searchTerms}";}]; - IconUpdateURL = "https://raw.githubusercontent.com/brave/brave-core/master/components/brave_welcome_ui/components/images/lion_logo.svg"; - updateInterval = 48; # every day + icon = ./logos/brave.svg; definedAliases = ["@bs"]; }; @@ -12,16 +12,16 @@ icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; definedAliases = ["@np"]; }; - "Nixpkgs issues" = { - urls = [{template = "https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+{searchTerms}";}]; - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = ["@ni"]; - }; "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"]; }; + "Nixpkgs issues" = { + urls = [{template = "https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+{searchTerms}";}]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = ["@ni"]; + }; "Homemanager Options" = { urls = [{template = "https://mipmip.github.io/home-manager-option-search/?query={searchTerms}";}]; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; @@ -33,39 +33,35 @@ 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 = 48; + icon = ./logos/rust_std.svg; definedAliases = ["@rs"]; }; "Rust tokio" = { urls = [{template = "https://docs.rs/tokio/latest/tokio/index.html?search={searchTerms}";}]; - iconUpdateURL = "https://avatars.githubusercontent.com/u/20248544?s=200&v=4"; - updateInterval = 48; + icon = ./logos/rust_tokio.png; definedAliases = ["@rt"]; }; + # OTHER "Google Scholar" = { urls = [{template = "https://scholar.google.com/scholar?hl=en&q={searchTerms}";}]; - iconUpdateURL = "https://scholar.google.com/favicon.ico"; - updateInterval = 48; + icon = ./logos/google_scholar.ico; 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 = 48; + icon = ./logos/wikipedia.svg; definedAliases = ["@wp"]; }; + "Arch Wiki" = { + urls = [{template = "https://wiki.archlinux.org/index.php?search={searchTerms}";}]; + icon = ./logos/arch_linux.svg; + definedAliases = ["@aw"]; + }; "Wikipedia (en)".metaData.hidden = true; "DuckDuckGo".metaData.hidden = true; |