Files
nixos/apps/zathura/default.nix
T
kenji 679f2e8f6b fix(zathura): preserve original colors in dark mode
Enabled 'recolor-keephue' to prevent documents from becoming purely monochrome
when recolor mode is active. This ensures images and colored text retain their
hue while still adapting brightness for the theme.
2026-01-15 16:18:18 -06:00

32 lines
849 B
Nix

{ pkgs, config, lib, ... }:
{
programs.zathura = {
enable = true;
options = {
selection-clipboard = "clipboard";
adjust-open = "best-fit";
pages-per-row = 1;
scroll-page-aware = "true";
scroll-full-overlap = "0.01";
scroll-step = 100;
zoom-min = 10;
recolor = true;
recolor-keephue = true;
};
extraConfig = "include ${config.home.homeDirectory}/.config/zathura/zathura-matugen";
};
home.activation.createZathuraMatugen = lib.hm.dag.entryAfter ["writeBoundary"] ''
if [ ! -f "${config.home.homeDirectory}/.config/zathura/zathura-matugen" ]; then
touch "${config.home.homeDirectory}/.config/zathura/zathura-matugen"
fi
'';
xdg.mimeApps = {
enable = true;
defaultApplications = {
"application/pdf" = "org.pwmt.zathura.desktop";
};
};
}