From b3d73b9ae723645792825ee8b88e873f96f2bd09 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 30 Jan 2024 08:06:05 +0000 Subject: [PATCH] Add firefox as additional mime entry Now I don't have to constantly update this list if I change browsers again... --- system/hyprland.nix | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/system/hyprland.nix b/system/hyprland.nix index fa402537..a948d6be 100644 --- a/system/hyprland.nix +++ b/system/hyprland.nix @@ -59,25 +59,34 @@ "image/png" = [ "swayimg.desktop" "emacsclient.desktop" "emacs.desktop" ]; "video/mp4" = [ "mpv.desktop" ]; "text/csv" = [ "emacsclient.desktop" "emacs.desktop" ]; - "text/html" = [ "chromium-browser.desktop" "nyxt.desktop" ]; - "x-scheme-handler/http" = [ "chromium-browser.desktop" "nyxt.desktop" ]; - "x-scheme-handler/https" = [ "chromium-browser.desktop" "nyxt.desktop" ]; - "x-scheme-handler/about" = [ "chromium-browser.desktop" "nyxt.desktop" ]; - "x-scheme-handler/chrome" = [ "chromium-browser.desktop" "nyxt.desktop" ]; + "text/html" = + [ "firefox.desktop" "chromium-browser.desktop" "nyxt.desktop" ]; + "x-scheme-handler/http" = + [ "firefox.desktop" "chromium-browser.desktop" "nyxt.desktop" ]; + "x-scheme-handler/https" = + [ "firefox.desktop" "chromium-browser.desktop" "nyxt.desktop" ]; + "x-scheme-handler/about" = + [ "firefox.desktop" "chromium-browser.desktop" "nyxt.desktop" ]; + "x-scheme-handler/chrome" = + [ "firefox.desktop" "chromium-browser.desktop" "nyxt.desktop" ]; "application/x-extension-htm" = - [ "chromium-browser.desktop" "nyxt.desktop" ]; + [ "firefox.desktop" "chromium-browser.desktop" "nyxt.desktop" ]; "application/x-extension-html" = - [ "chromium-browser.desktop" "nyxt.desktop" ]; + [ "firefox.desktop" "chromium-browser.desktop" "nyxt.desktop" ]; "application/x-extension-shtml" = - [ "chromium-browser.desktop" "nyxt.desktop" ]; - "application/xhtml+xml" = [ "chromium-browser.desktop" "nyxt.desktop" ]; + [ "firefox.desktop" "chromium-browser.desktop" "nyxt.desktop" ]; + "application/xhtml+xml" = + [ "firefox.desktop" "chromium-browser.desktop" "nyxt.desktop" ]; "application/x-extension-xhtml" = - [ "chromium-browser.desktop" "nyxt.desktop" ]; + [ "firefox.desktop" "chromium-browser.desktop" "nyxt.desktop" ]; "application/x-extension-xht" = - [ "chromium-browser.desktop" "nyxt.desktop" ]; - "application/x-mozilla-bookmarks" = [ "chromium-browser.desktop" ]; - "x-scheme-handler/msteams" = [ "chromium-browser.desktop" ]; - "x-scheme-handler/zoomus" = [ "chromium-browser.desktop" ]; + [ "firefox.desktop" "chromium-browser.desktop" "nyxt.desktop" ]; + "application/x-mozilla-bookmarks" = + [ "firefox.desktop" "chromium-browser.desktop" ]; + "x-scheme-handler/msteams" = + [ "firefox.desktop" "chromium-browser.desktop" ]; + "x-scheme-handler/zoomus" = + [ "firefox.desktop" "chromium-browser.desktop" ]; }; addedAssociations = defaultApplications; };