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:
parent
1b5f675a07
commit
7ca113b60e
|
@ -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
33
home/programs/zathura.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -105,5 +105,11 @@
|
|||
};
|
||||
|
||||
mime.enable = true;
|
||||
mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"application/pdf" = [ "org.pwmt.zathura-pdf-mupdf.desktop" ];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue