65 lines
1.7 KiB
Nix
65 lines
1.7 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
ui = config.rice.roles config.rice.palette.hex;
|
|
zathuraConfigDir = pkgs.runCommand "zathura-config" { } ''
|
|
mkdir -p $out
|
|
cp ${pkgs.writeText "zathurarc" ''
|
|
set recolor true
|
|
set recolor-darkcolor "${ui.fg}"
|
|
set recolor-lightcolor "${ui.bg}"
|
|
|
|
set default-fg "${ui.fg}"
|
|
set default-bg "${ui.bg}"
|
|
|
|
set statusbar-fg "${ui.fg}"
|
|
set statusbar-bg "${ui.overlay}"
|
|
|
|
set inputbar-fg "${ui.fg}"
|
|
set inputbar-bg "${ui.surface}"
|
|
|
|
set notification-fg "${ui.fg}"
|
|
set notification-bg "${ui.surface}"
|
|
set notification-error-fg "${ui.error}"
|
|
set notification-error-bg "${ui.surface}"
|
|
set notification-warning-fg "${ui.warning}"
|
|
set notification-warning-bg "${ui.surface}"
|
|
|
|
set highlight-color "${ui.highlight}"
|
|
set highlight-active-color "${ui.accent}"
|
|
|
|
set completion-fg "${ui.fg}"
|
|
set completion-bg "${ui.surface}"
|
|
set completion-group-fg "${ui.muted}"
|
|
set completion-group-bg "${ui.surface}"
|
|
set completion-highlight-fg "${ui.overlay}"
|
|
set completion-highlight-bg "${ui.secondary}"
|
|
|
|
set index-fg "${ui.fg}"
|
|
set index-bg "${ui.bg}"
|
|
set index-active-fg "${ui.overlay}"
|
|
set index-active-bg "${ui.secondary}"
|
|
''} $out/zathurarc
|
|
'';
|
|
zathuraWrapped = pkgs.symlinkJoin {
|
|
name = "zathura";
|
|
paths = [ pkgs.zathura ];
|
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
|
postBuild = ''
|
|
wrapProgram $out/bin/zathura \
|
|
--add-flags "--config-dir=${zathuraConfigDir}"
|
|
'';
|
|
};
|
|
in
|
|
with pkgs;
|
|
scope "apps" {
|
|
officeSuite = libreoffice;
|
|
mailClient = thunderbird;
|
|
noteTaking = obsidian;
|
|
ebookReader = foliate;
|
|
pdfReader = zathuraWrapped;
|
|
calculator = mate-calc;
|
|
}
|