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