aboutsummaryrefslogtreecommitdiff
path: root/modules/zathura.nix
blob: e59e69c687ee15312fbe048578900a33930af325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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";
      };
    };
  };
}