From cf2fe4f8b9e346b3286de0540d844d4b69feedb4 Mon Sep 17 00:00:00 2001 From: schererleander Date: Tue, 29 Apr 2025 22:47:00 +0200 Subject: add zathura module --- modules/default.nix | 1 + modules/zathura.nix | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 modules/zathura.nix 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"; + }; + }; + }; +} + -- cgit v1.3.1