diff options
| author | schererleander <leander@schererleander.de> | 2025-04-29 22:47:00 +0200 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2025-04-29 22:47:00 +0200 |
| commit | cf2fe4f8b9e346b3286de0540d844d4b69feedb4 (patch) | |
| tree | 4fb171380067aaaa86bc53869d4021b1146a7a3e /modules | |
| parent | 5db06024d727b2ca11f03d3ea6153a7946d8f720 (diff) | |
add zathura module
Diffstat (limited to 'modules')
| -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"; + }; + }; + }; +} + |
