From f8ba5af5ac9717501e43b223eaabc75e3cc837ab Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Mon, 2 Dec 2024 00:56:31 +0100 Subject: [PATCH] Set Zathura settings --- modules/users/modules/zathura/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/users/modules/zathura/default.nix b/modules/users/modules/zathura/default.nix index fc222ff..f46bb7f 100644 --- a/modules/users/modules/zathura/default.nix +++ b/modules/users/modules/zathura/default.nix @@ -7,6 +7,7 @@ let cfg = config.modules.zathura; + colors = config.theming.colors; in { options.modules.zathura.enable = lib.mkEnableOption "zathura"; @@ -17,6 +18,18 @@ in options = { guioptions = "none"; + recolor = true; + recolor-keephue = false; + recolor-darkcolor = lib.mkForce "#${colors.accent}"; + recolor-lightcolor = lib.mkForce "#${colors.bg}"; + }; + }; + + xdg.mimeApps = { + enable = true; + + defaultApplications = { + "application/pdf" = "zathura"; }; }; };