about summary refs log tree commit diff
path: root/modules/firefox
diff options
context:
space:
mode:
Diffstat (limited to 'modules/firefox')
-rw-r--r--modules/firefox/addons.json3
-rw-r--r--modules/firefox/addons.nix23
-rw-r--r--modules/firefox/default.nix5
-rw-r--r--modules/firefox/userContent.css3
4 files changed, 31 insertions, 3 deletions
diff --git a/modules/firefox/addons.json b/modules/firefox/addons.json
index f189ed7..c194368 100644
--- a/modules/firefox/addons.json
+++ b/modules/firefox/addons.json
@@ -23,6 +23,9 @@
     "slug": "no-pdf-download"
   },
   {
+    "slug": "plasma-integration"
+  },
+  {
     "pname": "rikaichamp",
     "slug": "10ten-ja-reader"
   },
diff --git a/modules/firefox/addons.nix b/modules/firefox/addons.nix
index 6fac4df..5a08549 100644
--- a/modules/firefox/addons.nix
+++ b/modules/firefox/addons.nix
@@ -171,6 +171,29 @@
       platforms = platforms.all;
     };
   };
+  "plasma-integration" = buildFirefoxXpiAddon {
+    pname = "plasma-integration";
+    version = "1.9.1";
+    addonId = "plasma-browser-integration@kde.org";
+    url = "https://addons.mozilla.org/firefox/downloads/file/4298512/plasma_integration-1.9.1.xpi";
+    sha256 = "394a3525185679dd5430d05f980ab6be19d96557560fe86208c21a8807669b33";
+    meta = with lib; {
+      homepage = "http://kde.org";
+      description = "Multitask efficiently by controlling browser functions from the Plasma desktop.";
+      license = licenses.gpl3;
+      mozPermissions = [
+        "nativeMessaging"
+        "notifications"
+        "storage"
+        "downloads"
+        "tabs"
+        "<all_urls>"
+        "contextMenus"
+        "*://*/*"
+      ];
+      platforms = platforms.all;
+    };
+  };
   "redirector" = buildFirefoxXpiAddon {
     pname = "redirector";
     version = "3.5.3";
diff --git a/modules/firefox/default.nix b/modules/firefox/default.nix
index c207930..4b04c40 100644
--- a/modules/firefox/default.nix
+++ b/modules/firefox/default.nix
@@ -115,6 +115,7 @@ in
                 user-agent-switcher
                 violentmonkey
               ]
+              ++ optional config.nixfiles.modules.kde.enable plasma-integration
               ++ optional config.nixfiles.modules.ipfs.enable ipfs-companion;
 
             search = {
@@ -201,7 +202,7 @@ in
 
                   "GitHub" = {
                     urls = [ { template = "https://github.com/search?q={searchTerms}"; } ];
-                    icon = getIcon "https://github.githubassets.com/favicons/favicon-dark.svg" "sha256-qu/d9ftvsntplFuxw9RFL8BpI9b2g5b6xfeGw6Ekh6w=";
+                    icon = getIcon "https://github.githubassets.com/favicons/favicon.svg" "sha256-apV3zU9/prdb3hAlr4W5ROndE4g3O1XMum6fgKwurmA=";
                     definedAliases = [
                       "@github"
                       "@gh"
@@ -352,7 +353,7 @@ in
 
                   "SourceHut" = {
                     urls = [ { template = "https://sr.ht/projects?search={searchTerms}"; } ];
-                    icon = getIcon "https://sr.ht/static/logo.png" "sha256-NBzKZhqE9//zVJlOwYiwyW/jRFh8+nS2YvC3zMCQ1fU=";
+                    icon = getIcon "https://sourcehut.org/logo.svg" "sha256-tX7ppdGitgaVFCI1aGc41n6er7srHi+GMv5+lpFvYBc=";
                     definedAliases = [
                       "@sourcehut"
                       "@srht"
diff --git a/modules/firefox/userContent.css b/modules/firefox/userContent.css
index 72382db..a009ad8 100644
--- a/modules/firefox/userContent.css
+++ b/modules/firefox/userContent.css
@@ -260,7 +260,8 @@
   #highlight__main-container,
   .global-footer,
   .global-navigation,
-  .global-registration-buttons {
+  .global-registration-buttons,
+  .notifications-placeholder {
     display: none !important;
   }
 

Consider giving Nix/NixOS a try! <3