From 2ddf877c6cb78a10bfcb5b33142195b47232d622 Mon Sep 17 00:00:00 2001 From: Stefan Weigl-Bosker Date: Mon, 7 Apr 2025 17:53:00 -0400 Subject: zathura and more colorscheme stuff --- modules/zathura.nix | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 modules/zathura.nix (limited to 'modules/zathura.nix') diff --git a/modules/zathura.nix b/modules/zathura.nix new file mode 100644 index 0000000..aa2cfad --- /dev/null +++ b/modules/zathura.nix @@ -0,0 +1,64 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.modules.zathura; + scheme = config.modules.scheme; + fmt = col: lib.strings.removePrefix "#" col; +in +{ + options.modules.zathura = { + enable = lib.mkEnableOption "zathura"; + }; + + config = lib.mkIf cfg.enable { + programs.zathura = { + enable = true; + mappings = { + m = "feedkeys "; + n = "feedkeys "; + e = "feedkeys "; + i = "feedkeys "; + "" = "feedkeys N"; + "" = "feedkeys E"; + "[normal] N" = "feedkeys "; + "[normal] E" = "feedkeys "; + "h" = "feedkeys m"; + "j" = "feedkeys n"; + "k" = "feedkeys e"; + "l" = "feedkeys i"; + }; + options = { + font = "BerkeleyMonoPatched Nerd Font Propo 12"; + selection-clipboard = "clipboard"; + recolor = true; + default-fg = scheme.base05; + default-bg = scheme.base00; + completion-fg = scheme.base05; + completion-bg = scheme.base02; + completion-highlight-fg = scheme.base05; + completion-highlight-bg = scheme.base03; + completion-group-bg = scheme.base02; + completion-group-fg = scheme.base0E; + + statusbar-fg = scheme.base05; + statusbar-bg = scheme.base01; + notification-fg = scheme.base05; + notification-bg = scheme.base01; + + inputbar-fg = scheme.base05; + inputbar-bg = scheme.base01; + + recolor-lightcolor = scheme.base00; + recolor-darkcolor = scheme.base05; + index-active-fg = scheme.base05; + index-active-bg = scheme.base01; + + render-loading-bg = scheme.base00; + render-loading-fg = scheme.base05; + + highlight-color = scheme.base01; + highlight-fg = scheme.base05; + highlight-active-color = scheme.base05; + }; + }; + }; +} -- cgit v1.2.3