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