aboutsummaryrefslogtreecommitdiff
path: root/modules/home/zathura
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2026-01-09 16:57:15 +0100
committerschererleander <leander@schererleander.de>2026-01-09 23:13:49 +0100
commit3b5a73c436eb22e0cda59469263490705e149cb9 (patch)
treeae3f20ca6008b11f71247dfc6e2df8218de9b95c /modules/home/zathura
parentec45aae780da92e12cf82c5a32e336b14b7540ba (diff)
refactor: use flake-parts, change modules structure
Diffstat (limited to 'modules/home/zathura')
-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";
+ };
+ };
+ };
+}