From 7faf00eeb364427e1fea57a3e66ed98101eeb6ca Mon Sep 17 00:00:00 2001 From: "s0wlz (Matthias Puchstein)" Date: Wed, 31 Dec 2025 01:14:04 +0100 Subject: [PATCH] feat: add Zathura document viewer template - Created Jinja2 template for Zathura config. - Mapped UI colors and PDF recolor settings to system DNA. - Updated documentation and repository map. --- GEMINI.md | 1 + INSTALL.md | 46 +++++++++++++++++++++++++++++++--- README.md | 1 + templates/zathura/meta.yaml | 4 +++ templates/zathura/zathurarc.j2 | 46 ++++++++++++++++++++++++++++++++++ 5 files changed, 95 insertions(+), 3 deletions(-) create mode 100644 templates/zathura/meta.yaml create mode 100644 templates/zathura/zathurarc.j2 diff --git a/GEMINI.md b/GEMINI.md index db50c27..ad3afa0 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -82,5 +82,6 @@ Apex is not about pretty colors; it is about signal clarity. │ ├── hyprland/ │ ├── fuzzel/ │ ├── waybar/ +│ ├── zathura/ │ └── alacritty/ └── dist/ # Compiled theme files (gitignore this) diff --git a/INSTALL.md b/INSTALL.md index 71c9692..0de1140 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -237,11 +237,51 @@ All generated theme files can be found in the `dist/` directory after running `u ```css - @import "colors.css"; + @import "colors.css"; - ``` + ``` - 3. Use the variables in your CSS (e.g., `background-color: @background;`, `color: @foreground;`, `border-color: @accent;`). + 3. Use the variables in your CSS (e.g., `background-color: @background;`, `color: @foreground;`, `border-color: @accent;`). + + + + --- + + + + ## 11. Zathura + + + + **Files:** + + - `dist/zathura/apex-neon-zathurarc` + + - `dist/zathura/apex-aeon-zathurarc` + + + + **Installation:** + + 1. Copy the desired file to your Zathura config directory: + + ```bash + + mkdir -p ~/.config/zathura + + cp dist/zathura/apex-neon-zathurarc ~/.config/zathura/zathurarc + + ``` + + 2. Or include it in your existing config: + + ```conf + + include apex-neon-zathurarc + + ``` + + diff --git a/README.md b/README.md index 4144e1c..905e43a 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ The factory currently generates native themes for: - **Hyprland** (Conf) - **Fuzzel** (INI) - **Waybar** (CSS variables) +- **Zathura** (Config) ## The Apex DNA diff --git a/templates/zathura/meta.yaml b/templates/zathura/meta.yaml new file mode 100644 index 0000000..8e440e9 --- /dev/null +++ b/templates/zathura/meta.yaml @@ -0,0 +1,4 @@ +author: S0wlz (Owlibou) +description: Zathura document viewer theme +version: 1.0.0 +strategy: individual diff --git a/templates/zathura/zathurarc.j2 b/templates/zathura/zathurarc.j2 new file mode 100644 index 0000000..ddf493d --- /dev/null +++ b/templates/zathura/zathurarc.j2 @@ -0,0 +1,46 @@ +# {{ scheme }} — Zathura Theme +# DNA: State over Decoration + +# Core +set default-bg "{{ palette.background }}" +set default-fg "{{ palette.foreground }}" + +# Status Bar +set statusbar-bg "{{ ui.panel }}" +set statusbar-fg "{{ palette.foreground }}" + +# Input Bar +set inputbar-bg "{{ ui.panel }}" +set inputbar-fg "{{ palette.foreground }}" + +# Completion +set completion-bg "{{ ui.panel }}" +set completion-fg "{{ palette.foreground }}" +set completion-group-bg "{{ ui.border }}" +set completion-group-fg "{{ ui.dim }}" +set completion-highlight-bg "{{ palette.selection }}" +set completion-highlight-fg "{{ palette.selection_fg }}" + +# Notifications +set notification-bg "{{ ui.panel }}" +set notification-fg "{{ palette.foreground }}" +set notification-error-bg "{{ ansi.bright.red }}" +set notification-error-fg "{{ palette.background }}" +set notification-warning-bg "{{ palette.warning }}" +set notification-warning-fg "{{ palette.background }}" + +# Selection & Highlight +set highlight-color "rgba({{ palette.selection | replace('#', '') }}, 0.5)" +set highlight-active-color "rgba({{ palette.selection | replace('#', '') }}, 0.8)" + +# Recolor (Dark Mode for PDFs) +# In Neon (Dark), we want dark paper (background) and light ink (foreground). +# In Aeon (Light), we want light paper and dark ink (standard). +set recolor-lightcolor "{{ palette.background }}" +set recolor-darkcolor "{{ palette.foreground }}" + +# Default recolor state +# Ideally, only true for dark themes, but Zathura config is static. +# Users can toggle with Ctrl+R. +set recolor "false" +set recolor-keephue "true"