summaryrefslogtreecommitdiff
path: root/home/wayland/modules/mimeapps.nix
blob: 9050cfed1a34cfa0ad6efb04ebf8eaeee3d4d1dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ ... }: {
  xdg.mimeApps = {
    enable = true;
    defaultApplications = {
      # image
      "image/avif" = "imv.desktop";
      "image/gif" = "mpv.desktop";
      "image/heic" = "imv.desktop";
      "image/jpeg" = "imv.desktop";
      "image/png" = "imv.desktop";
      "image/svg+xml" = "imv.desktop";
      "image/webp" = "imv.desktop";
      "image/x-jxl" = "imv.desktop";

      # media
      "audio/basic" = "mpv.desktop";
      "audio/mpeg" = "mpv.desktop";
      "audio/ogg" = "mpv.desktop";
      "video/mp4" = "mpv.desktop";
      "video/webm" = "mpv.desktop";
      "video/x-matroska" = "mpv.desktop";

      # browser
      "x-scheme-handler/about" = "linkhandler.desktop";
      "x-scheme-handler/http" = "linkhandler.desktop";
      "x-scheme-handler/https" = "linkhandler.desktop";
      "x-scheme-handler/unknown" = "linkhandler.desktop";

      # documents
      "application/pdf" = "org.pwmt.zathura.desktop";
    };
  };
}