diff options
| -rw-r--r-- | modules/default.nix | 1 | ||||
| -rw-r--r-- | modules/zathura.nix | 24 |
2 files changed, 25 insertions, 0 deletions
diff --git a/modules/default.nix b/modules/default.nix index 8a68d80..0633e0b 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -10,5 +10,6 @@ ./neovim/default.nix ./nextcloud.nix ./spicetify.nix + ./zathura.nix ]; } diff --git a/modules/zathura.nix b/modules/zathura.nix new file mode 100644 index 0000000..e59e69c --- /dev/null +++ b/modules/zathura.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: + +let + cfg = config.zathura; +in { + options.zathura.enable = lib.mkEnableOption "Enable zathura and setup"; + config = lib.mkIf cfg.enable { + programs.zathura = { + enable = true; + options = { + adjust-open = "width"; + zoom-center = true; + page-padding = 0; + pages-per-row = 1; + scroll-page-aware = true; + }; + mappings = { + j = "navigate previous"; + k = "navigate next"; + }; + }; + }; +} + |
