sleeker zathura

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-01-19 22:07:14 +01:00
parent 207961e397
commit 132c169e24

View File

@@ -1,17 +1,20 @@
{ pkgs, rice, ... }: { rice, ... }:
{ {
programs.zathura = { programs.zathura = {
enable = true; 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-bg = background;
completion-fg = foreground; completion-fg = foreground;
completion-highlight-bg = background; completion-highlight-bg = background;
completion-highlight-fg = accent.base; 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; default-fg = foreground;
highlight-active-color = "rgba(${rice.lib.hex-to-rgb-comma-string accent.base},0.5)"; highlight-active-color = "rgba(${f accent.base},0.5)";
highlight-color = "rgba(${rice.lib.hex-to-rgb-comma-string secondary.base},0.5)"; highlight-color = "rgba(${f secondary.base},0.5)";
highlight-fg = "rgba(${rice.lib.hex-to-rgb-comma-string secondary.base},0.5)"; highlight-fg = "rgba(${f secondary.base},0.5)";
index-fg = accent.bright; index-fg = accent.bright;
index-bg = black.dark; index-bg = black.dark;
index-active-fg = background; index-active-fg = background;
@@ -40,7 +43,7 @@
scroll-page-aware = true; scroll-page-aware = true;
smooth-scroll = true; smooth-scroll = true;
scroll-full-overlap = 0.01; scroll-full-overlap = 0.01;
scroll-step = 300; scroll-step = 100;
}; };
mappings = { mappings = {
h = ''feedkeys "<C-Left>"''; h = ''feedkeys "<C-Left>"'';