updated xdg-mime.nix
This commit is contained in:
parent
b5433aacb8
commit
f28dc0efb2
2 changed files with 22 additions and 22 deletions
|
|
@ -24,6 +24,7 @@ in {
|
|||
];
|
||||
|
||||
xdg = {
|
||||
mime.enable = true;
|
||||
portal = {
|
||||
enable = true;
|
||||
xdgOpenUsePortal = false;
|
||||
|
|
|
|||
|
|
@ -1,38 +1,37 @@
|
|||
# Mime allows us to configure the default applications for each file type
|
||||
{
|
||||
xdg = {
|
||||
mime = { enable = true; };
|
||||
#desktopEntries = { };
|
||||
mimeApps = {
|
||||
associations = {
|
||||
added = {
|
||||
|
||||
## General
|
||||
"inode/directory" = "yazi.desktop";
|
||||
"image/*" = "swayimg.desktop";
|
||||
"audio/*" = "strawberry.desktop";
|
||||
"video/*" = "vlc.desktop";
|
||||
"text/plain" = "nvim.desktop";
|
||||
"text/markdown" = "nvim.desktop";
|
||||
"application/pdf" = "zathura.desktop";
|
||||
"application/zip" = "org.gnome.FileRoller.desktop";
|
||||
"inode/directory" = [ "yazi.desktop" ];
|
||||
"image/*" = [ "swayimg.desktop" ];
|
||||
"audio/*" = [ "strawberry.desktop" ];
|
||||
"video/*" = [ "vlc.desktop" ];
|
||||
"text/plain" = [ "nvim.desktop" ];
|
||||
"text/markdown" = [ "nvim.desktop" ];
|
||||
"application/pdf" = [ "zathura.desktop" ];
|
||||
"application/zip" = [ "org.gnome.FileRoller.desktop" ];
|
||||
|
||||
## Web
|
||||
"text/css" = "nvim.desktop";
|
||||
"text/html" = "nvim.desktop";
|
||||
"application/json" = "firefox.desktop";
|
||||
"x-scheme-handler/ftp" = "firefox.desktop";
|
||||
"x-scheme-handler/http" = "firefox.desktop";
|
||||
"x-scheme-handler/https" = "firefox.desktop";
|
||||
"text/css" = [ "nvim.desktop" ];
|
||||
"text/html" = [ "nvim.desktop" ];
|
||||
"application/json" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/ftp" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/http" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/https" = [ "firefox.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";
|
||||
"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