updated xdg-mime.nix
This commit is contained in:
parent
47def082e5
commit
9eeb59537f
1 changed files with 45 additions and 33 deletions
|
|
@ -1,47 +1,59 @@
|
||||||
# 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 = {
|
||||||
defaultApplications = {
|
|
||||||
|
|
||||||
## Basic Text
|
desktopEntries = {
|
||||||
"text/plain" = "nvim.desktop";
|
swayimg = {
|
||||||
"text/markdown" = "nvim.desktop";
|
name = "Swayimg";
|
||||||
"application/pdf" = "firefox.desktop";
|
genericName = "Image Viewer";
|
||||||
|
terminal = true;
|
||||||
|
exec = "swayimg %F";
|
||||||
|
categories = [ "Graphics" "Viewer" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
## Images
|
mimeApps = {
|
||||||
"image/gif" = "swayimg";
|
defaultApplications = {
|
||||||
"image/png" = "swayimg";
|
|
||||||
"image/jpg" = "swayimg.desktop";
|
|
||||||
"image/jpeg" = "swayimg.desktop";
|
|
||||||
"image/webp" = "swayimg.desktop";
|
|
||||||
|
|
||||||
## Videos
|
## Basic Text
|
||||||
"video/mp4" = "vlc.desktop";
|
"text/plain" = "nvim.desktop";
|
||||||
"video/mpeg" = "vlc.desktop";
|
"text/markdown" = "nvim.desktop";
|
||||||
"video/webm" = "vlc.desktop";
|
"application/pdf" = "firefox.desktop";
|
||||||
"video/quicktime" = "vlc.desktop";
|
|
||||||
"video/x-matroska" = "vlc.desktop";
|
|
||||||
|
|
||||||
|
## Images
|
||||||
|
"image/gif" = "swayimg.desktop";
|
||||||
|
"image/png" = "swayimg.desktop";
|
||||||
|
"image/jpg" = "swayimg.desktop";
|
||||||
|
"image/jpeg" = "swayimg.desktop";
|
||||||
|
"image/webp" = "swayimg.desktop";
|
||||||
|
|
||||||
## Music
|
## Videos
|
||||||
|
"video/mp4" = "vlc.desktop";
|
||||||
|
"video/mpeg" = "vlc.desktop";
|
||||||
|
"video/webm" = "vlc.desktop";
|
||||||
|
"video/quicktime" = "vlc.desktop";
|
||||||
|
"video/x-matroska" = "vlc.desktop";
|
||||||
|
|
||||||
## Gaming
|
## Music
|
||||||
|
|
||||||
## Web
|
## Gaming
|
||||||
"text/css" = "nvim.desktop";
|
|
||||||
"text/html" = "nvim.desktop";
|
|
||||||
"x-scheme-handler/http" = "firefox.desktop";
|
|
||||||
"x-scheme-handler/https" = "firefox.desktop";
|
|
||||||
|
|
||||||
## Code
|
## Web
|
||||||
"text/x-shellscript" = "nvim.desktop";
|
"text/css" = "nvim.desktop";
|
||||||
"text/x-xml" = "nvim.desktop";
|
"text/html" = "nvim.desktop";
|
||||||
"text/x-yaml" = "nvim.desktop";
|
"x-scheme-handler/http" = "firefox.desktop";
|
||||||
"text/x-toml" = "nvim.desktop";
|
"x-scheme-handler/https" = "firefox.desktop";
|
||||||
"text/x-nix" = "nvim.desktop";
|
|
||||||
"text/x-rust" = "nvim.desktop";
|
|
||||||
"text/x-python" = "nvim.desktop";
|
|
||||||
|
|
||||||
|
## Code
|
||||||
|
"text/x-shellscript" = "nvim.desktop";
|
||||||
|
"text/x-xml" = "nvim.desktop";
|
||||||
|
"text/x-yaml" = "nvim.desktop";
|
||||||
|
"text/x-toml" = "nvim.desktop";
|
||||||
|
"text/x-nix" = "nvim.desktop";
|
||||||
|
"text/x-rust" = "nvim.desktop";
|
||||||
|
"text/x-python" = "nvim.desktop";
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue