summaryrefslogtreecommitdiff
path: root/home/wayland/modules/zathura.nix
blob: faec245a7d0018fba974b68e931b6dc1d702e52a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, lib, ... }: let
  font = config.global.font.sans.name
    + lib.optionalString (config.global.font.sans.size != null)
      " " + builtins.toString config.global.font.sans.size;
in {
    programs.zathura = {
    enable = true;

    mappings = {
      "f" = "toggle_fullscreen";
      "[fullscreen] f" = "toggle_fullscreen";
    };
    options = {
      inherit font;
      statusbar-basename = true;
      selection-clipboard = "clipboard";
      database = "sqlite";
    };
  };
}