updated xdg-mime.nix

This commit is contained in:
serenity-F 2024-12-27 15:54:27 +10:00
parent 47def082e5
commit 9eeb59537f

View file

@ -1,6 +1,18 @@
# 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 = {
desktopEntries = {
swayimg = {
name = "Swayimg";
genericName = "Image Viewer";
terminal = true;
exec = "swayimg %F";
categories = [ "Graphics" "Viewer" ];
};
};
mimeApps = {
defaultApplications = { defaultApplications = {
## Basic Text ## Basic Text
@ -9,8 +21,8 @@
"application/pdf" = "firefox.desktop"; "application/pdf" = "firefox.desktop";
## Images ## Images
"image/gif" = "swayimg"; "image/gif" = "swayimg.desktop";
"image/png" = "swayimg"; "image/png" = "swayimg.desktop";
"image/jpg" = "swayimg.desktop"; "image/jpg" = "swayimg.desktop";
"image/jpeg" = "swayimg.desktop"; "image/jpeg" = "swayimg.desktop";
"image/webp" = "swayimg.desktop"; "image/webp" = "swayimg.desktop";
@ -22,7 +34,6 @@
"video/quicktime" = "vlc.desktop"; "video/quicktime" = "vlc.desktop";
"video/x-matroska" = "vlc.desktop"; "video/x-matroska" = "vlc.desktop";
## Music ## Music
## Gaming ## Gaming
@ -44,4 +55,5 @@
}; };
}; };
};
} }