-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfiles.nix
141 lines (120 loc) · 3.56 KB
/
files.nix
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{ user, ... }:
let
zsh_confDir = ".config/zsh";
yazi_confDir = ".config/yazi";
in
{
# "${hx_confDir}/config.toml" = {
# text = ''
# theme = 'kanagawa'
# [editor]
# true-color = true
# line-number = "relative"
# lsp.display-inlay-hints = true
# soft-wrap.enable = true
# '';
# };
"${zsh_confDir}/.zprofile" = {
enable = true;
executable = false;
text = ''
if [ "X$TMUX" = "X" ];
then
test $SSH_AUTH_SOCK && ln -sf "$SSH_AUTH_SOCK" "/tmp/ssh-agent-$USER-tmux"
else
export SSH_AUTH_SOCK="/tmp/ssh-agent-$USER-tmux"
fi
'';
};
"${yazi_confDir}/theme.toml" = {
enable = true;
executable = false;
text = ''
# from https://github.com/dangooddd/kanagawa.yazi/blob/main/flavor.toml
# general
[manager]
marker_copied = { fg = "#98bb6c", bg = "#98bb6c" } # green
marker_cut = { fg = "#e46876", bg = "#e46876" } # red
marker_marked = { fg = "#957fb8", bg = "#957fb8" } # magenta
marker_selected = { fg = "#ffa066", bg = "#ffa066" } # cyan
cwd = { fg = "#e6c384" } # yellow
hovered = { reversed = true }
preview_hovered = { reversed = true }
tab_active = { reversed = true }
tab_inactive = {}
tab_width = 1
# default bg
count_copied = { fg = "#1f1f28", bg = "#98bb6c" } # green
count_cut = { fg = "#1f1f28", bg = "#e46876" } # red
count_selected = { fg = "#1f1f28", bg = "#e6c384" } # yellow
border_symbol = "│"
border_style = { fg = "#dcd7ba"} # white
# status-line
[status]
separator_open = ""
separator_close = ""
separator_style = { fg = "reset", bg = "#363646" } # light bg
# default bg
mode_normal = { fg = "#1f1f28", bg = "#85a6ea", bold = true } # blue
mode_select = { fg = "#1f1f28", bg = "#957fb8", bold = true } # magenta
mode_unset = { fg = "#1f1f28", bg = "#e6c384", bold = true } # yellow
# blue - light bg
progress_label = { fg = "#85a6ea", bg = "#363646", bold = true }
# light bg - default bg
progress_normal = { fg = "#363646", bg = "#1f1f28" }
progress_error = { fg = "#363646", bg = "#1f1f28" }
permissions_t = { fg = "#98bb6c" } # green
permissions_r = { fg = "#e6c384" } # yellow
permissions_w = { fg = "#e82424" } # red
permissions_x = { fg = "#7aa89f" } # cyan
permissions_s = { fg = "#938aa9" } # magenta
[select]
border = { fg = "#7fb4ca" } # blue
active = { fg = "#938aa9", bold = true } # magenta
inactive = {}
[input]
border = { fg = "#7fb4ca" } # blue
title = {}
value = {}
selected = { reversed = true }
[completion]
border = { fg = "#7fb4ca" } # blue
active = { reversed = true }
inactive = {}
[tasks]
border = { fg = "#7fb4ca" } # blue
title = {}
hovered = { fg = "#938aa9" } # magenta
[which]
cols = 2
separator = " - "
separator_style = { fg = "#727169" } # darkgrey
mask = { bg = "#16161d" } # dark bg
rest = { fg = "#727169" } # darkgrey
cand = { fg = "#85a6ea" }
desc = { fg = "#565666" }
[help]
on = { fg = "#7aa89f" } # cyan
run = { fg = "#938aa9" } # magenta
desc = {}
hovered = { reversed = true, bold = true }
footer = { fg = "#090618", bg = "#dcd7ba" } # white
[notify]
title_info = { fg = "#98bb6c" } # green
title_warn = { fg = "#e6c384" } # yellow
title_error = { fg = "#e82424" } # red
# files
[filetype]
rules = [
{ mime = "image/*", fg = "#e6c384" },
{ mime = "{audio,video}/*", fg = "#957fb8" },
{ mime = "application/{,g}zip", fg = "#e46876" },
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", fg = "#e46876" },
{ mime = "application/{pdf,doc,rtf,vnd.*}", fg = "#6a9589" },
{ name = "*", is = "orphan", fg = "#e46876" },
{ name = "*", is = "exec", fg = "#957fb8" },
{ name = "*/", fg = "#85a6ea"}
]
'';
};
}