diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-06-02 07:04:51 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-06-02 07:04:51 +0530 |
commit | 523c1b4b890e5d2b74651558a3a47da41f42d9e8 (patch) | |
tree | db38539109fc1d4e665a89dbabd779e6ff50ba17 /home/wayland/modules/mimeapps.nix | |
parent | 8febb2fad131dc1ff42a2c667b26b013d64c17b8 (diff) |
home-manager/mimeapps: init
Diffstat (limited to 'home/wayland/modules/mimeapps.nix')
-rw-r--r-- | home/wayland/modules/mimeapps.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/home/wayland/modules/mimeapps.nix b/home/wayland/modules/mimeapps.nix new file mode 100644 index 0000000..9050cfe --- /dev/null +++ b/home/wayland/modules/mimeapps.nix @@ -0,0 +1,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"; + }; + }; +} |