nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

zathura.nix (1724B)


      1 { pkgs, ... }:
      2 
      3 {
      4   programs.zathura = {
      5     enable = true;
      6 
      7     package = pkgs.zathura.override {
      8       plugins = with pkgs.zathuraPkgs; [
      9         zathura_pdf_mupdf
     10         zathura_cb
     11       ];
     12     };
     13 
     14     options = {
     15       adjust-open = "best-fit";
     16       pages-per-row = 1;
     17       selection-clipboard = "clipboard";
     18       statusbar-basename = true;
     19       scroll-page-aware = true;
     20       scroll-step = 100;
     21       guioptions = "s";
     22       font = "monospace normal 10";
     23       # colour scheme
     24       default-bg = "#202020";
     25       default-fg = "#D0D0D0";
     26       statusbar-bg = "#181818";
     27       statusbar-fg = "#B8B8B8";
     28       inputbar-bg = "#181818";
     29       inputbar-fg = "#D0D0D0";
     30       notification-bg = "#303030";
     31       notification-fg = "#D0D0D0";
     32       notification-error-bg = "#402020";
     33       notification-error-fg = "#E0B0B0";
     34       notification-warning-bg = "#403820";
     35       notification-warning-fg = "#E0D0A0";
     36       highlight-color = "#606060";
     37       highlight-active-color = "#888888";
     38       # recolour scheme
     39       recolor = false;
     40       recolor-lightcolor = "#202020";
     41       recolor-darkcolor = "#D0D0D0";
     42       recolor-keephue = true;
     43     };
     44 
     45     mappings = {
     46       "h" = "scroll left";
     47       "j" = "scroll down";
     48       "k" = "scroll up";
     49       "l" = "scroll right";
     50       "<Space>" = "scroll down";
     51       "<S-Space>" = "scroll up";
     52       "<C-d>" = "scroll half-down";
     53       "<C-u>" = "scroll half-up";
     54       "gg" = "goto top";
     55       "G" = "goto bottom";
     56       "+" = "zoom in";
     57       "-" = "zoom out";
     58       "=" = "zoom in";
     59       "i" = "adjust_window width";
     60       "o" = "adjust_window best-fit";
     61       "r" = "rotate";
     62       "<C-r>" = "recolor";
     63       "<C-f>" = "toggle_fullscreen";
     64       "q" = "quit";
     65     };
     66   };
     67 }