aboutsummaryrefslogtreecommitdiff
path: root/modules/home-manager/zathura.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home-manager/zathura.nix')
-rw-r--r--modules/home-manager/zathura.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/home-manager/zathura.nix b/modules/home-manager/zathura.nix
new file mode 100644
index 0000000..592119b
--- /dev/null
+++ b/modules/home-manager/zathura.nix
@@ -0,0 +1,27 @@
+{ config, lib, pkgs, ... }:
+
+{
+ options.zathura.enable = lib.mkEnableOption "Enable zathura and setup";
+ config = lib.mkIf config.zathura.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";
+ };
+ };
+ };
+} \ No newline at end of file