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
This commit is contained in:
Evie Litherland-Smith 2024-01-10 11:51:05 +00:00
parent 419fc0be90
commit 02a6ac0ed1

View file

@ -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;