From 7615030b6b1a0c5e41d830aae1b78bb3203adb59 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 29 Jan 2024 15:38:15 +0000 Subject: [PATCH] Fix chromium mime entry, add nyxt as fallback for chromium entries --- system/hyprland.nix | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/system/hyprland.nix b/system/hyprland.nix index 73cf23db..fa402537 100644 --- a/system/hyprland.nix +++ b/system/hyprland.nix @@ -54,24 +54,30 @@ "application/pdf" = [ "emacsclient.desktop" "emacs.desktop" ]; "application/epub+zip" = [ "emacsclient.desktop" "emacs.desktop" ]; "application/oxps" = [ "emacsclient.desktop" "emacs.desktop" ]; - "image/jpeg" = [ "swayimg.desktop" ]; - "image/png" = [ "swayimg.desktop" ]; + "image/jpeg" = + [ "swayimg.desktop" "emacsclient.desktop" "emacs.desktop" ]; + "image/png" = [ "swayimg.desktop" "emacsclient.desktop" "emacs.desktop" ]; "video/mp4" = [ "mpv.desktop" ]; "text/csv" = [ "emacsclient.desktop" "emacs.desktop" ]; - "text/html" = [ "chromium.desktop" ]; - "x-scheme-handler/http" = [ "chromium.desktop" ]; - "x-scheme-handler/https" = [ "chromium.desktop" ]; - "x-scheme-handler/about" = [ "chromium.desktop" ]; - "x-scheme-handler/chrome" = [ "chromium.desktop" ]; - "application/x-extension-htm" = [ "chromium.desktop" ]; - "application/x-extension-html" = [ "chromium.desktop" ]; - "application/x-extension-shtml" = [ "chromium.desktop" ]; - "application/xhtml+xml" = [ "chromium.desktop" ]; - "application/x-extension-xhtml" = [ "chromium.desktop" ]; - "application/x-extension-xht" = [ "chromium.desktop" ]; - "application/x-mozilla-bookmarks" = [ "chromium.desktop" ]; - "x-scheme-handler/msteams" = [ "chromium.desktop" ]; - "x-scheme-handler/zoomus" = [ "chromium.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" ]; + "application/x-extension-htm" = + [ "chromium-browser.desktop" "nyxt.desktop" ]; + "application/x-extension-html" = + [ "chromium-browser.desktop" "nyxt.desktop" ]; + "application/x-extension-shtml" = + [ "chromium-browser.desktop" "nyxt.desktop" ]; + "application/xhtml+xml" = [ "chromium-browser.desktop" "nyxt.desktop" ]; + "application/x-extension-xhtml" = + [ "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" ]; }; addedAssociations = defaultApplications; };