From 02a6ac0ed15fea153d23a802ce6c7c08ade349e4 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 10 Jan 2024 11:51:05 +0000 Subject: [PATCH] Update default mimetypes Use chromium for default browser-related mimetypes as nyxt doesn't (currently) handle opening links externally very nicely. Still using nyxt as my go-to browser but chromium is a good backup Change pdfs/epubs and images to use emacs by default, moving away from things like zathura --- home/hyprland/default.nix | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 95383f8e..045c1d76 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -113,24 +113,25 @@ mimeApps = rec { enable = true; defaultApplications = { - "image/jpeg" = [ "swayimg.desktop" ]; - "image/png" = [ "swayimg.desktop" ]; + "application/pdf" = [ "emacs.desktop" ]; + "application/epub+zip" = [ "emacs.desktop" ]; + "application/oxps" = [ "emacs.desktop" ]; + "image/jpeg" = [ "emacs.desktop" ]; + "image/png" = [ "emacs.desktop" ]; "video/mp4" = [ "mpv.desktop" ]; - "text/csv" = [ "calc.desktop" ]; - "text/html" = [ "nyxt.desktop" ]; - "x-scheme-handler/http" = [ "nyxt.desktop" ]; - "x-scheme-handler/https" = [ "nyxt.desktop" ]; - "x-scheme-handler/about" = [ "nyxt.desktop" ]; - "x-scheme-handler/chrome" = [ "nyxt.desktop" ]; - "application/x-extension-htm" = [ "nyxt.desktop" ]; - "application/x-extension-html" = [ "nyxt.desktop" ]; - "application/x-extension-shtml" = [ "nyxt.desktop" ]; - "application/xhtml+xml" = [ "nyxt.desktop" ]; - "application/x-extension-xhtml" = [ "nyxt.desktop" ]; - "application/x-extension-xht" = [ "nyxt.desktop" ]; - "application/pdf" = [ "org.pwmt.zathura-pdf-mupdf.desktop" ]; - "application/epub+zip" = [ "org.pwmt.zathura-pdf-mupdf.desktop" ]; - "application/oxps" = [ "org.pwmt.zathura-pdf-mupdf.desktop" ]; + "text/csv" = [ "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" = [ "teams-for-linux.desktop" ]; }; associations.added = defaultApplications;