aboutsummaryrefslogtreecommitdiff
path: root/modules/zathura.nix
blob: d3a789befe2bd5067c3c3204cdfa25b901c9df01 (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
25
26
27
28
29
{ 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 = {
        recolor-lightcolor = "rgba(0, 0, 0, 0)";
	recolor-darkcolor = "rgba(255, 255, 255, 1)";
	recolor = true;
        adjust-open = "width";
	guioptions = "none";
        zoom-center = true;
        page-padding = 0;
        pages-per-row = 1;
        scroll-page-aware = true;
      };
      mappings = {
        i = "recolor";
        j = "navigate previous";
        k = "navigate next";
      };
    };
  };
}