aboutsummaryrefslogtreecommitdiff
path: root/modules/zathura.nix
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-04-29 22:47:00 +0200
committerschererleander <leander@schererleander.de>2025-04-29 22:47:00 +0200
commitcf2fe4f8b9e346b3286de0540d844d4b69feedb4 (patch)
tree4fb171380067aaaa86bc53869d4021b1146a7a3e /modules/zathura.nix
parent5db06024d727b2ca11f03d3ea6153a7946d8f720 (diff)
add zathura module
Diffstat (limited to 'modules/zathura.nix')
-rw-r--r--modules/zathura.nix24
1 files changed, 24 insertions, 0 deletions
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";
+ };
+ };
+ };
+}
+