PDF viewer: evince -> zathura

This commit is contained in:
Colin 2024-03-06 04:51:01 +00:00
parent cf86b4a67c
commit bc0660b623
3 changed files with 21 additions and 1 deletions

View File

@ -119,6 +119,7 @@
./xdg-desktop-portal-wlr.nix
./xdg-terminal-exec.nix
./xdg-utils.nix
./zathura.nix
./zeal.nix
./zecwallet-lite.nix
./zsh

View File

@ -0,0 +1,18 @@
{ ... }:
{
sane.programs.zathura = {
sandbox.method = "bwrap";
sandbox.wrapperType = "inplace"; #< wrapper sets ZATHURA_PLUGINS_PATH to $out/lib/...
sandbox.whitelistDri = true;
sandbox.whitelistWayland = true;
sandbox.autodetectCliPaths = "existingFile";
persist.byStore.plaintext = [
# history, bookmarks
".local/share/zathura"
];
mime.associations."application/pdf" = "org.pwmt.zathura.desktop";
mime.associations."application/vnd.comicbook+zip" = "org.pwmt.zathura.desktop"; # .cbz
mime.associations."application/vnd.comicbook-rar" = "org.pwmt.zathura.desktop"; # .cbr
};
}

View File

@ -60,7 +60,7 @@ in
"dialect" # language translation
"dino" # XMPP client
# "emote"
"evince" # works on phosh
# "evince" # PDF viewer
# "flare-signal" # gtk4 signal client
# "foliate" # e-book reader
"fractal" # matrix client
@ -105,6 +105,7 @@ in
"vulkan-tools" # vulkaninfo
# "whalebird" # pleroma client (Electron). input is broken on phosh.
"xdg-terminal-exec"
"zathura" # PDF/CBZ/ePUB viewer
];
sane.programs.handheldGuiApps = declPackageSet [