Install zathura as Document Viewer (PDFs)

It uses vim keybindings and can be configured via module.
Set it as default application for PDFs.
This commit is contained in:
Daniel Siepmann 2022-05-22 16:11:10 +02:00
parent 1b5f675a07
commit 7ca113b60e
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
3 changed files with 42 additions and 0 deletions

View file

@ -32,6 +32,9 @@
inherit config pkgs;
};
zathura = import ./programs/zathura.nix {
};
firefox = import ./programs/firefox.nix {
inherit pkgs;
};

33
home/programs/zathura.nix Normal file
View file

@ -0,0 +1,33 @@
_:
{
enable = true;
options = {
font = "monospace 14";
default-bg = "#2e3436";
default-fg = "#9cd9f0";
completion-bg = "#000000";
completion-fg = "#9cd9f0";
completion-group-bg = "#000000";
completion-group-fg = "#9cd9f0";
completion-completion-bg = "#000000";
completion-completion-fg = "#9cd9f0";
inputbar-bg = "#2e3436";
inputbar-fg = "#9cd9f0";
statusbar-bg = "#2e3436";
statusbar-fg = "#9cd9f0";
render-loading-bg = "#2e3436";
render-loading-fg = "#9cd9f0";
window-title-basename = true;
statusbar-basename = true;
statusbar-page-percent = true;
page-padding = 14;
selection-clipboard = "clipboard";
# Seems to break start of app, nothing happens
# sandbox = "strict";
};
}

View file

@ -105,5 +105,11 @@
};
mime.enable = true;
mimeApps = {
enable = true;
defaultApplications = {
"application/pdf" = [ "org.pwmt.zathura-pdf-mupdf.desktop" ];
};
};
}