commit c4cad63f15501cc390231433f625b9dae2afe561
parent 82e78f9346fee60f74b3ca8279d843283b3bd711
Author: breadcat <breadcat@users.noreply.github.com>
Date: Sun, 16 Aug 2026 18:16:27 +0100
Preliminary Zathura setup
Diffstat:
3 files changed, 69 insertions(+), 0 deletions(-)
diff --git a/home/zathura.nix b/home/zathura.nix
@@ -0,0 +1,67 @@
+{ pkgs, ... }:
+
+{
+ programs.zathura = {
+ enable = true;
+
+ package = pkgs.zathura.override {
+ plugins = with pkgs.zathuraPkgs; [
+ zathura_pdf_mupdf
+ zathura_cb
+ ];
+ };
+
+ options = {
+ adjust-open = "best-fit";
+ pages-per-row = 1;
+ selection-clipboard = "clipboard";
+ statusbar-basename = true;
+ scroll-page-aware = true;
+ scroll-step = 100;
+ guioptions = "s";
+ font = "monospace normal 10";
+ # colour scheme
+ default-bg = "#202020";
+ default-fg = "#D0D0D0";
+ statusbar-bg = "#181818";
+ statusbar-fg = "#B8B8B8";
+ inputbar-bg = "#181818";
+ inputbar-fg = "#D0D0D0";
+ notification-bg = "#303030";
+ notification-fg = "#D0D0D0";
+ notification-error-bg = "#402020";
+ notification-error-fg = "#E0B0B0";
+ notification-warning-bg = "#403820";
+ notification-warning-fg = "#E0D0A0";
+ highlight-color = "#606060";
+ highlight-active-color = "#888888";
+ # recolour scheme
+ recolor = false;
+ recolor-lightcolor = "#202020";
+ recolor-darkcolor = "#D0D0D0";
+ recolor-keephue = true;
+ };
+
+ mappings = {
+ "h" = "scroll left";
+ "j" = "scroll down";
+ "k" = "scroll up";
+ "l" = "scroll right";
+ "<Space>" = "scroll down";
+ "<S-Space>" = "scroll up";
+ "<C-d>" = "scroll half-down";
+ "<C-u>" = "scroll half-up";
+ "gg" = "goto top";
+ "G" = "goto bottom";
+ "+" = "zoom in";
+ "-" = "zoom out";
+ "=" = "zoom in";
+ "i" = "adjust_window width";
+ "o" = "adjust_window best-fit";
+ "r" = "rotate";
+ "<C-r>" = "recolor";
+ "<C-f>" = "toggle_fullscreen";
+ "q" = "quit";
+ };
+ };
+}
diff --git a/machines/atlas.nix b/machines/atlas.nix
@@ -59,6 +59,7 @@
../home/tofi.nix
../home/wayle.nix
../home/yt-dlp.nix
+ ../home/zathura.nix
];
home.stateVersion = "24.11";
};
diff --git a/machines/minerva.nix b/machines/minerva.nix
@@ -54,6 +54,7 @@
../home/tofi.nix
../home/wayle.nix
../home/yt-dlp.nix
+ ../home/zathura.nix
];
home.stateVersion = "24.11";
};