From 7e0dbcf06da71e1f39d310bb65677faac4ae057e Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 2 Jul 2026 20:46:10 -0500 Subject: Add zathura with PDF and DjVu support, set as default PDF/DjVu viewer --- modules/home/christian.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'modules/home') diff --git a/modules/home/christian.nix b/modules/home/christian.nix index 503f262..98112ec 100644 --- a/modules/home/christian.nix +++ b/modules/home/christian.nix @@ -25,6 +25,12 @@ xclip hexyl calibre + (pkgs.zathuraPkgs.zathuraWrapper.override { + plugins = with pkgs.zathuraPkgs; [ + zathura_pdf_mupdf + zathura_djvu + ]; + }) ]; programs.alacritty = { @@ -146,7 +152,9 @@ xdg.mimeApps = { enable = true; defaultApplications = { - "application/pdf" = [ "firefox.desktop" ]; + "application/pdf" = [ "org.pwmt.zathura.desktop" ]; + "image/vnd.djvu" = [ "org.pwmt.zathura.desktop" ]; + "image/vnd.djvu+multipage" = [ "org.pwmt.zathura.desktop" ]; "text/html" = [ "firefox.desktop" ]; "x-scheme-handler/http" = [ "firefox.desktop" ]; "x-scheme-handler/https" = [ "firefox.desktop" ]; -- cgit v1.2.3