From d3ae26842ec1eb79f9da0c478c1a6586ad349539 Mon Sep 17 00:00:00 2001 From: Soispha Date: Tue, 20 Feb 2024 18:37:45 +0100 Subject: refactor(hm/conf/firefox/config/search): Download icons to avoid losing them --- .../conf/firefox/config/search/engines/default.nix | 38 ++++++++--------- .../config/search/engines/logos/arch_linux.svg | 1 + .../firefox/config/search/engines/logos/brave.svg | 25 +++++++++++ .../config/search/engines/logos/google_scholar.ico | Bin 0 -> 3871 bytes .../config/search/engines/logos/rust_std.svg | 47 +++++++++++++++++++++ .../config/search/engines/logos/rust_tokio.png | Bin 0 -> 3551 bytes .../config/search/engines/logos/wikipedia.svg | 1 + 7 files changed, 91 insertions(+), 21 deletions(-) create mode 100644 hm/soispha/conf/firefox/config/search/engines/logos/arch_linux.svg create mode 100644 hm/soispha/conf/firefox/config/search/engines/logos/brave.svg create mode 100644 hm/soispha/conf/firefox/config/search/engines/logos/google_scholar.ico create mode 100644 hm/soispha/conf/firefox/config/search/engines/logos/rust_std.svg create mode 100644 hm/soispha/conf/firefox/config/search/engines/logos/rust_tokio.png create mode 100644 hm/soispha/conf/firefox/config/search/engines/logos/wikipedia.svg (limited to 'hm') 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; diff --git a/hm/soispha/conf/firefox/config/search/engines/logos/arch_linux.svg b/hm/soispha/conf/firefox/config/search/engines/logos/arch_linux.svg new file mode 100644 index 00000000..949b5c5f --- /dev/null +++ b/hm/soispha/conf/firefox/config/search/engines/logos/arch_linux.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hm/soispha/conf/firefox/config/search/engines/logos/brave.svg b/hm/soispha/conf/firefox/config/search/engines/logos/brave.svg new file mode 100644 index 00000000..09dd2e42 --- /dev/null +++ b/hm/soispha/conf/firefox/config/search/engines/logos/brave.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/hm/soispha/conf/firefox/config/search/engines/logos/google_scholar.ico b/hm/soispha/conf/firefox/config/search/engines/logos/google_scholar.ico new file mode 100644 index 00000000..85d0c664 Binary files /dev/null and b/hm/soispha/conf/firefox/config/search/engines/logos/google_scholar.ico differ diff --git a/hm/soispha/conf/firefox/config/search/engines/logos/rust_std.svg b/hm/soispha/conf/firefox/config/search/engines/logos/rust_std.svg new file mode 100644 index 00000000..0091b5a8 --- /dev/null +++ b/hm/soispha/conf/firefox/config/search/engines/logos/rust_std.svg @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/hm/soispha/conf/firefox/config/search/engines/logos/rust_tokio.png b/hm/soispha/conf/firefox/config/search/engines/logos/rust_tokio.png new file mode 100644 index 00000000..f1de55ff Binary files /dev/null and b/hm/soispha/conf/firefox/config/search/engines/logos/rust_tokio.png differ diff --git a/hm/soispha/conf/firefox/config/search/engines/logos/wikipedia.svg b/hm/soispha/conf/firefox/config/search/engines/logos/wikipedia.svg new file mode 100644 index 00000000..dc32f984 --- /dev/null +++ b/hm/soispha/conf/firefox/config/search/engines/logos/wikipedia.svg @@ -0,0 +1 @@ +]>Wikipedia logo version 2 \ No newline at end of file -- cgit 1.4.1