6 Commits

Author SHA1 Message Date
kenji 679f2e8f6b fix(zathura): preserve original colors in dark mode
Enabled 'recolor-keephue' to prevent documents from becoming purely monochrome
when recolor mode is active. This ensures images and colored text retain their
hue while still adapting brightness for the theme.
2026-01-15 16:18:18 -06:00
kenji 9aae7d6df9 feat(yazi): sort by newest (mtime) as default 2026-01-15 16:17:22 -06:00
kenji c6cd00f955 feat(yazi): enable full mouse support
Added 'mouse_events' to the Yazi manager configuration, enabling click, scroll,
touch, move, and drag interactions for better navigation and control.
2026-01-15 16:16:13 -06:00
kenji 33cb851539 fix(yazi): set as default handler for directories
This fixes the issue where "Show in folder" (e.g., in Firefox) would incorrectly
open other applications like Zathura. By explicitly associating 'inode/directory'
with 'yazi.desktop', folders will now open in Yazi as expected.
2026-01-15 16:14:27 -06:00
kenji 5ec7f5edc7 style(matugen): update zathura template to mimic pywal aesthetic
- Flattened UI elements (statusbar, inputbar, notifications) to use the
  surface background color, creating a seamless look similar to pywal themes.
- Changed highlight colors to use 'tertiary' and 'secondary' accents for
  better visibility and style consistency.
- Updated completion highlights for higher contrast.
2026-01-15 16:11:59 -06:00
kenji e7e5226c87 fix(zathura): use absolute path for matugen config and ensure file exists
- Updated 'extraConfig' to use an absolute path for the 'zathura-matugen'
  include, fixing path resolution issues.
- Added a home activation script to create an empty 'zathura-matugen' file
  if it doesn't exist, preventing zathura from crashing on fresh installs
  before matugen has run.
2026-01-15 16:08:45 -06:00
3 changed files with 29 additions and 12 deletions
+9 -9
View File
@@ -1,13 +1,13 @@
set default-bg "#{{colors.surface.default.hex_stripped}}"
set default-fg "#{{colors.on_surface.default.hex_stripped}}"
set statusbar-bg "#{{colors.surface_container.default.hex_stripped}}"
set statusbar-bg "#{{colors.surface.default.hex_stripped}}"
set statusbar-fg "#{{colors.on_surface.default.hex_stripped}}"
set inputbar-bg "#{{colors.surface_container.default.hex_stripped}}"
set inputbar-bg "#{{colors.surface.default.hex_stripped}}"
set inputbar-fg "#{{colors.on_surface.default.hex_stripped}}"
set notification-bg "#{{colors.surface_container_high.default.hex_stripped}}"
set notification-bg "#{{colors.surface.default.hex_stripped}}"
set notification-fg "#{{colors.on_surface.default.hex_stripped}}"
set notification-error-bg "#{{colors.error.default.hex_stripped}}"
@@ -16,17 +16,17 @@ set notification-error-fg "#{{colors.on_error.default.hex_stripped}}"
set notification-warning-bg "#{{colors.tertiary.default.hex_stripped}}"
set notification-warning-fg "#{{colors.on_tertiary.default.hex_stripped}}"
set highlight-color "#{{colors.primary.default.hex_stripped}}"
set highlight-active-color "#{{colors.primary_container.default.hex_stripped}}"
set highlight-color "#{{colors.tertiary.default.hex_stripped}}"
set highlight-active-color "#{{colors.secondary.default.hex_stripped}}"
set completion-bg "#{{colors.surface_container.default.hex_stripped}}"
set completion-bg "#{{colors.surface.default.hex_stripped}}"
set completion-fg "#{{colors.on_surface.default.hex_stripped}}"
set completion-group-bg "#{{colors.surface_container.default.hex_stripped}}"
set completion-group-bg "#{{colors.surface.default.hex_stripped}}"
set completion-group-fg "#{{colors.on_surface.default.hex_stripped}}"
set completion-highlight-bg "#{{colors.primary.default.hex_stripped}}"
set completion-highlight-fg "#{{colors.on_primary.default.hex_stripped}}"
set completion-highlight-bg "#{{colors.on_surface.default.hex_stripped}}"
set completion-highlight-fg "#{{colors.surface.default.hex_stripped}}"
set index-bg "#{{colors.surface.default.hex_stripped}}"
set index-fg "#{{colors.on_surface.default.hex_stripped}}"
+11 -1
View File
@@ -77,9 +77,11 @@ in {
settings = {
manager = {
show_hidden = true;
sort_by = "natural";
sort_by = "mtime";
sort_reverse = true;
sort_dir_first = true;
linemode = "size";
mouse_events = ["click" "scroll" "touch" "move" "drag"];
};
tasks = {
image_bound = [10000 10000];
@@ -107,6 +109,14 @@ in {
default=hyprland;gtk
org.freedesktop.impl.portal.FileChooser=termfilechooser
'';
xdg.mimeApps = {
enable = true;
defaultApplications = {
"inode/directory" = "yazi.desktop";
};
};
wayland.windowManager.hyprland.settings.windowrulev2 = [
# File picker yazi - floating, centered, smaller size
"float, class:^(org\\.hakase\\.popup\\.yazi)$"
+9 -2
View File
@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, config, lib, ... }:
{
programs.zathura = {
enable = true;
@@ -11,10 +11,17 @@
scroll-step = 100;
zoom-min = 10;
recolor = true;
recolor-keephue = true;
};
extraConfig = "include zathura-matugen";
extraConfig = "include ${config.home.homeDirectory}/.config/zathura/zathura-matugen";
};
home.activation.createZathuraMatugen = lib.hm.dag.entryAfter ["writeBoundary"] ''
if [ ! -f "${config.home.homeDirectory}/.config/zathura/zathura-matugen" ]; then
touch "${config.home.homeDirectory}/.config/zathura/zathura-matugen"
fi
'';
xdg.mimeApps = {
enable = true;
defaultApplications = {