diff --git a/users/simon/base.nix b/users/simon/base.nix index 478ffac..90c09e0 100644 --- a/users/simon/base.nix +++ b/users/simon/base.nix @@ -31,6 +31,7 @@ in home-manager.users.simon = { pkgs, ... }: { imports = [ ./modules/alacritty.nix + ./modules/zathura.nix ]; gtk = { diff --git a/users/simon/modules/zathura.nix b/users/simon/modules/zathura.nix new file mode 100644 index 0000000..9f5e081 --- /dev/null +++ b/users/simon/modules/zathura.nix @@ -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 set page-right-to-left + ''; + }; +}