blob: 1c55be5428e74d58d167a5c6f9d898a44448e991 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
{
config,
lib,
...
}: let
cfg = config.soispha.programs.zathura;
in {
options.soispha.programs.zathura = {
enable = lib.mkEnableOption "zathura";
};
config.home-manager.users.soispha = lib.mkIf cfg.enable {
programs.zathura = {
enable = true;
options = {
# Use dark mode
# recolor = true;
# recolor-keephue = true;
page-padding = 2;
selection-notification = true;
selection-clipboard = "clipboard";
scroll-page-aware = true;
guioptions = "";
statusbar-home-tilde = true;
window-title-basename = true;
};
# source: https://raw.githubusercontent.com/Daru-san/SnowyDots/master/modules/home/programs/zathura/default.nix
# TODO: Add theming. <2024-10-18>
# extraConfig = with config.colorScheme.palette; ''
# set notification-error-bg "#${base03}" #525252
# set notification-error-fg "#${base0A}" #ee5396
# set notification-warning-bg "#${base03}" #525252
# set notification-warning-fg "#${base0A}" #ee5398
# set notification-bg "#${base03}" #525252
# set notification-fg "#${base08}" #3ddbd9
#
# set completion-group-bg "#${base09}" #78a9ff
# set completion-group-fg "#${base01}" #262626
# set completion-bg "#${base09}" #78a9ff
# set completion-fg "#${base01}" #262626
# set completion-highlight-bg "#${base03}" #525252
# set completion-highlight-fg "#${base0B}" #33b1ff
#
# # Define the color in index mode
# set index-bg "#${base01}" #262626
# set index-fg "#${base04}" #dde1e6
# set index-active-bg "#${base0B}" #33b1ff
# set index-active-fg "#${base04}" #dde1e6
#
# set inputbar-bg "#${base02}" #262626
# set inputbar-fg "#${base04}" #dde1e6
#
# set statusbar-bg "#${base02}" #262626
# set statusbar-fg "#${base04}" #dde1e6
#
# set default-bg "#${base00}" #161616
# set default-fg "#${base05}" #f2f4f8
#
# set recolor-lightcolor "#${base00}" #161616
# set recolor-darkcolor "#${base05}" #f2f4f8
# '';
};
home.sessionVariables = {
READER = "zathura";
};
};
}
|