From 132c169e24afefdae5bb12650a6b8c148854dc43 Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Sun, 19 Jan 2025 22:07:14 +0100 Subject: [PATCH] sleeker zathura --- home-modules/zathura.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/home-modules/zathura.nix b/home-modules/zathura.nix index 37ab7f6..447f635 100644 --- a/home-modules/zathura.nix +++ b/home-modules/zathura.nix @@ -1,17 +1,20 @@ -{ pkgs, rice, ... }: +{ rice, ... }: { programs.zathura = { enable = true; - options = with rice.color; { + options = let + f = rice.lib.hex-to-rgb-comma-string; + t = builtins.toString rice.transparency; + in with rice.color; { completion-bg = background; completion-fg = foreground; completion-highlight-bg = background; completion-highlight-fg = accent.base; - default-bg = "rgba(${rice.lib.hex-to-rgb-comma-string background},${builtins.toString rice.transparency})"; + default-bg = "rgba(${f background},${t})"; default-fg = foreground; - highlight-active-color = "rgba(${rice.lib.hex-to-rgb-comma-string accent.base},0.5)"; - highlight-color = "rgba(${rice.lib.hex-to-rgb-comma-string secondary.base},0.5)"; - highlight-fg = "rgba(${rice.lib.hex-to-rgb-comma-string secondary.base},0.5)"; + highlight-active-color = "rgba(${f accent.base},0.5)"; + highlight-color = "rgba(${f secondary.base},0.5)"; + highlight-fg = "rgba(${f secondary.base},0.5)"; index-fg = accent.bright; index-bg = black.dark; index-active-fg = background; @@ -40,7 +43,7 @@ scroll-page-aware = true; smooth-scroll = true; scroll-full-overlap = 0.01; - scroll-step = 300; + scroll-step = 100; }; mappings = { h = ''feedkeys ""'';