From 3b5a73c436eb22e0cda59469263490705e149cb9 Mon Sep 17 00:00:00 2001 From: schererleander Date: Fri, 9 Jan 2026 16:57:15 +0100 Subject: refactor: use flake-parts, change modules structure --- modules/home/zathura/default.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 modules/home/zathura/default.nix (limited to 'modules/home/zathura/default.nix') diff --git a/modules/home/zathura/default.nix b/modules/home/zathura/default.nix new file mode 100644 index 0000000..2334fc7 --- /dev/null +++ b/modules/home/zathura/default.nix @@ -0,0 +1,37 @@ +{ + config, + lib, + ... +}: +let + cfg = config.nx.programs.zathura; + inherit (lib) mkEnableOption mkIf; +in +{ + options.nx.programs.zathura = { + enable = mkEnableOption "zathura document viewer"; + }; + + config = mkIf cfg.enable { + programs.zathura = { + enable = true; + options = { + recolor-lightcolor = "rgba(0, 0, 0, 0)"; + recolor-darkcolor = "rgba(255, 255, 255, 1)"; + recolor = true; + adjust-open = "width"; + guioptions = "none"; + zoom-center = true; + page-padding = 0; + pages-per-row = 1; + scroll-page-aware = true; + }; + + mappings = { + i = "recolor"; + j = "navigate previous"; + k = "navigate next"; + }; + }; + }; +} -- cgit v1.3.1