feat(media): add zathura pdf/document viewer

minimal keyboard-driven viewer; bundled mupdf backend covers PDFs out of the
box. yank selection to the wayland clipboard.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-05 20:35:54 +02:00
parent 1e163fe025
commit 0731e78003
+9 -2
View File
@@ -1,5 +1,5 @@
# Generic media viewers. mpv for video/audio, imv for images — both minimal, # Generic viewers. mpv for video/audio, imv for images, zathura for PDFs/docs —
# keyboard-driven, Wayland-native. No personal config here. # all minimal, keyboard-driven, Wayland-native. No personal config here.
# #
# imv key binds run external actions on the current file (yank path, rotate/flip, # imv key binds run external actions on the current file (yank path, rotate/flip,
# delete, open in editor, info). Wallpaper uses awww (daemon + CLI): `setbg` # delete, open in editor, info). Wallpaper uses awww (daemon + CLI): `setbg`
@@ -41,6 +41,13 @@ in
}; };
}; };
# PDF/document viewer. pkgs.zathura bundles the mupdf backend, so enabling is
# enough. Route yanks to the wayland clipboard.
programs.zathura = {
enable = true;
options.selection-clipboard = "clipboard";
};
home.packages = with pkgs; [ home.packages = with pkgs; [
setbg setbg
awww # wayland wallpaper daemon (setbg backend) awww # wayland wallpaper daemon (setbg backend)