all the xdg types imaginable (not really)

This commit is contained in:
jacekpoz 2023-07-21 07:25:58 +02:00
parent 3312ddf8e6
commit 5ce320766a
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,5 @@
_: {
imports = [
./xdg
];
}

View file

@ -0,0 +1,50 @@
{
config,
pkgs,
...
}: {
config = {
xdg.mime = {
enable = true;
defaultApplications = {
"text/html" = [ "librewolf.desktop" ];
"x-scheme-handler/http" = [ "librewolf.desktop" ];
"x-scheme-handler/https" = [ "librewolf.desktop" ];
"x-scheme-handler/about" = [ "librewolf.desktop" ];
"x-scheme-handler/unknown" = [ "librewolf.desktop" ];
"x-scheme-handler/mailto" = [ "thunderbird.desktop" ];
"message/rfc822" = [ "thunderbird.desktop" ];
"x-scheme-handler/mid" = [ "thunderbird.desktop" ];
"inode/directory" = [ "thunar.desktop" ];
"x-scheme-handler/heroic" = [ "heroic.desktop" ];
"audio/mp3" = [ "mpv.desktop" ];
"audio/ogg" = [ "mpv.desktop" ];
"audio/mpeg" = [ "mpv.desktop" ];
"audio/aac" = [ "mpv.desktop" ];
"audio/opus" = [ "mpv.desktop" ];
"audio/wav" = [ "mpv.desktop" ];
"audio/webm" = [ "mpv.desktop" ];
"audio/3gpp" = [ "mpv.desktop" ];
"audio/3gpp2" = [ "mpv.desktop" ];
"video/mp4" = [ "mpv.desktop" ];
"video/x-msvideo" = [ "mpv.desktop" ];
"video/mpeg" = [ "mpv.desktop" ];
"video/ogg" = [ "mpv.desktop" ];
"video/mp2t" = [ "mpv.desktop" ];
"video/webm" = [ "mpv.desktop" ];
"video/3gpp" = [ "mpv.desktop" ];
"video/3gpp2" = [ "mpv.desktop" ];
"image/png" = [ "imv.desktop" ];
"image/jpeg" = [ "imv.desktop" ];
"image/gif" = [ "imv.desktop" ];
"image/avif" = [ "imv.desktop" ];
"image/bmp" = [ "imv.desktop" ];
"image/vnd.microsoft.icon" = [ "imv.desktop" ];
"image/svg+xml" = [ "imv.desktop" ];
"image/tiff" = [ "imv.desktop" ];
"image/webp" = [ "imv.desktop" ];
"text/plain" = [ "nvim.desktop" ];
};
};
};
}