aboutsummaryrefslogtreecommitdiff
path: root/modules/home/zathura/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home/zathura/default.nix')
-rw-r--r--modules/home/zathura/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/modules/home/zathura/default.nix b/modules/home/zathura/default.nix
new file mode 100644
index 0000000..2334fc7
--- /dev/null
+++ b/modules/home/zathura/default.nix
@@ -0,0 +1,37 @@
+{
+ config,
+ lib,
+ ...
+}:
+let
+ cfg = config.nx.programs.zathura;
+ inherit (lib) mkEnableOption mkIf;
+in
+{
+ options.nx.programs.zathura = {
+ enable = mkEnableOption "zathura document viewer";
+ };
+
+ config = 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";
+ };
+ };
+ };
+}