diff options
Diffstat (limited to 'modules/programs/zathura.nix')
| -rw-r--r-- | modules/programs/zathura.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/modules/programs/zathura.nix b/modules/programs/zathura.nix new file mode 100644 index 0000000..35304a4 --- /dev/null +++ b/modules/programs/zathura.nix @@ -0,0 +1,34 @@ +{ + config, + username, + lib, + ... +}: + +{ + options.nx.programs.zathura.enable = lib.mkEnableOption "Enable zathura and setup"; + config = lib.mkIf config.nx.programs.zathura.enable { + home-manager.users.${username} = { + 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"; + }; + }; + }; + }; +}
\ No newline at end of file |
