home: Add zathura

This commit is contained in:
Simon Bruder 2020-11-07 11:35:58 +01:00
parent 182bdde6e3
commit 0a3aef095b
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 56 additions and 0 deletions

View file

@ -31,6 +31,7 @@ in
home-manager.users.simon = { pkgs, ... }: { home-manager.users.simon = { pkgs, ... }: {
imports = [ imports = [
./modules/alacritty.nix ./modules/alacritty.nix
./modules/zathura.nix
]; ];
gtk = { gtk = {

View file

@ -0,0 +1,55 @@
let
common = import ./common.nix;
solarized = common.colorschemes.solarized;
colorschemes = {
# Base16 Solarized Dark
# Author: Ethan Schoonover (modified by aramisgithub)
# Source: https://github.com/nicodebo/base16-zathura (modified)
solarized-dark = {
default-bg = solarized.base03;
default-fg = solarized.base03;
statusbar-fg = solarized.base0;
statusbar-bg = solarized.base02;
inputbar-bg = solarized.base03;
inputbar-fg = solarized.base3;
notification-bg = solarized.base03;
notification-fg = solarized.base3;
notification-error-bg = solarized.base03;
notification-error-fg = solarized.red;
notification-warning-bg = solarized.base03;
notification-warning-fg = solarized.red;
highlight-color = solarized.yellow;
highlight-active-color = solarized.green;
completion-bg = solarized.base02;
completion-fg = solarized.green;
completion-highlight-fg = solarized.base3;
completion-highlight-bg = solarized.green;
recolor-lightcolor = solarized.base03;
recolor-darkcolor = solarized.base0;
recolor = false;
recolor-keephue = false;
};
};
in
{
programs.zathura = {
enable = true;
options = {
selection-clipboard = "clipboard";
} // colorschemes.solarized-dark;
extraConfig = ''
map <C-j> set page-right-to-left
'';
};
}