update mimeapps

This commit is contained in:
Hadi
2025-03-22 17:46:47 +01:00
parent e6244ea98d
commit 8c43e65000

View File

@@ -1,40 +1,49 @@
# Mime allows us to configure the default applications for each file type # Mime allows us to configure the default applications for each file type
{ {
xdg.mimeApps = { xdg = {
enable = true; enable = true;
defaultApplications = { mime.enable = true;
"text/markdown" = "nvim.desktop"; userDirs.enable = true;
"text/plain" = "nvim.desktop"; portal.xdgOpenUsePortal = true;
"text/x-shellscript" = "nvim.desktop"; configFile."mimeapps.list".force =
"text/x-python" = "nvim.desktop"; true; # don't error when mimeapps.list is replaced, it gets replaced often
"text/x-go" = "nvim.desktop"; mimeApps = {
"text/css" = "nvim.desktop"; enable = true;
"text/javascript" = "nvim.desktop"; defaultApplications = {
"text/x-c" = "nvim.desktop"; "text/markdown" = "nvim.desktop";
"text/x-c++" = "nvim.desktop"; "text/plain" = "nvim.desktop";
"text/x-java" = "nvim.desktop"; "text/x-shellscript" = "nvim.desktop";
"text/x-rust" = "nvim.desktop"; "text/x-python" = "nvim.desktop";
"text/x-yaml" = "nvim.desktop"; "text/x-go" = "nvim.desktop";
"text/x-toml" = "nvim.desktop"; "text/css" = "nvim.desktop";
"text/x-dockerfile" = "nvim.desktop"; "text/javascript" = "nvim.desktop";
"text/x-xml" = "nvim.desktop"; "text/x-c" = "nvim.desktop";
"text/x-php" = "nvim.desktop"; "text/x-c++" = "nvim.desktop";
"image/jpeg" = "imv.desktop"; "text/x-java" = "nvim.desktop";
"image/jpg" = "imv.desktop"; "text/x-rust" = "nvim.desktop";
"image/webp" = "imv.desktop"; "text/x-yaml" = "nvim.desktop";
"image/gif" = "zen.desktop"; "text/x-toml" = "nvim.desktop";
"x-scheme-handler/http" = "zen.desktop"; "text/x-dockerfile" = "nvim.desktop";
"x-scheme-handler/https" = "zen.desktop"; "text/x-xml" = "nvim.desktop";
"text/html" = "zen.desktop"; "text/x-php" = "nvim.desktop";
"application/pdf" = "zathura.desktop"; "image/jpeg" = "imv.desktop";
"image/png" = "imv-dir.desktop"; "image/jpg" = "imv.desktop";
"x-scheme-handler/chrome" = "zen.desktop"; "image/webp" = "imv.desktop";
"application/x-extension-htm" = "zen.desktop"; "image/gif" = "zen.desktop";
"application/x-extension-html" = "zen.desktop"; "x-scheme-handler/http" = "zen.desktop";
"application/x-extension-shtml" = "zen.desktop"; "x-scheme-handler/https" = "zen.desktop";
"application/xhtml+xml" = "zen.desktop"; "text/html" = "zen.desktop";
"application/x-extension-xhtml" = "zen.desktop"; "inode/directory" = "thunar.desktop";
"application/x-extension-xht" = "zen.desktop"; "application/pdf" = "zathura.desktop";
"image/png" = "imv-dir.desktop";
"x-scheme-handler/chrome" = "zen.desktop";
"application/x-extension-htm" = "zen.desktop";
"application/x-extension-html" = "zen.desktop";
"application/x-extension-shtml" = "zen.desktop";
"application/xhtml+xml" = "zen.desktop";
"application/x-extension-xhtml" = "zen.desktop";
"application/x-extension-xht" = "zen.desktop";
};
}; };
}; };
} }