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 = {
|
xdg = {
|
||||||
|
mime.enable = true;
|
||||||
portal = {
|
portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xdgOpenUsePortal = false;
|
xdgOpenUsePortal = false;
|
||||||
|
|
|
||||||
|
|
@ -1,38 +1,37 @@
|
||||||
# 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 = {
|
xdg = {
|
||||||
mime = { enable = true; };
|
|
||||||
#desktopEntries = { };
|
#desktopEntries = { };
|
||||||
mimeApps = {
|
mimeApps = {
|
||||||
associations = {
|
associations = {
|
||||||
added = {
|
added = {
|
||||||
|
|
||||||
## General
|
## General
|
||||||
"inode/directory" = "yazi.desktop";
|
"inode/directory" = [ "yazi.desktop" ];
|
||||||
"image/*" = "swayimg.desktop";
|
"image/*" = [ "swayimg.desktop" ];
|
||||||
"audio/*" = "strawberry.desktop";
|
"audio/*" = [ "strawberry.desktop" ];
|
||||||
"video/*" = "vlc.desktop";
|
"video/*" = [ "vlc.desktop" ];
|
||||||
"text/plain" = "nvim.desktop";
|
"text/plain" = [ "nvim.desktop" ];
|
||||||
"text/markdown" = "nvim.desktop";
|
"text/markdown" = [ "nvim.desktop" ];
|
||||||
"application/pdf" = "zathura.desktop";
|
"application/pdf" = [ "zathura.desktop" ];
|
||||||
"application/zip" = "org.gnome.FileRoller.desktop";
|
"application/zip" = [ "org.gnome.FileRoller.desktop" ];
|
||||||
|
|
||||||
## Web
|
## Web
|
||||||
"text/css" = "nvim.desktop";
|
"text/css" = [ "nvim.desktop" ];
|
||||||
"text/html" = "nvim.desktop";
|
"text/html" = [ "nvim.desktop" ];
|
||||||
"application/json" = "firefox.desktop";
|
"application/json" = [ "firefox.desktop" ];
|
||||||
"x-scheme-handler/ftp" = "firefox.desktop";
|
"x-scheme-handler/ftp" = [ "firefox.desktop" ];
|
||||||
"x-scheme-handler/http" = "firefox.desktop";
|
"x-scheme-handler/http" = [ "firefox.desktop" ];
|
||||||
"x-scheme-handler/https" = "firefox.desktop";
|
"x-scheme-handler/https" = [ "firefox.desktop" ];
|
||||||
|
|
||||||
## Code
|
## Code
|
||||||
"text/x-shellscript" = "nvim.desktop";
|
"text/x-shellscript" = [ "nvim.desktop" ];
|
||||||
"text/x-xml" = "nvim.desktop";
|
"text/x-xml" = [ "nvim.desktop" ];
|
||||||
"text/x-yaml" = "nvim.desktop";
|
"text/x-yaml" = [ "nvim.desktop" ];
|
||||||
"text/x-toml" = "nvim.desktop";
|
"text/x-toml" = [ "nvim.desktop" ];
|
||||||
"text/x-nix" = "nvim.desktop";
|
"text/x-nix" = [ "nvim.desktop" ];
|
||||||
"text/x-rust" = "nvim.desktop";
|
"text/x-rust" = [ "nvim.desktop" ];
|
||||||
"text/x-python" = "nvim.desktop";
|
"text/x-python" = [ "nvim.desktop" ];
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue