-
Notifications
You must be signed in to change notification settings - Fork 0
/
.chezmoi.toml.tmpl
179 lines (130 loc) · 6.21 KB
/
.chezmoi.toml.tmpl
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{{- if ne .chezmoi.os "darwin" -}}
{{- writeToStdout "[dotfiles] We only support MacOS. Aborting.\n" -}}
{{- exit 1 -}}
{{- end -}}
[data]
[data.input.keyboard]
caps2ctrl = {{ promptBoolOnce . "input.keyboard.caps2ctrl" "(keyboard) caps2ctrl" }}
[data.input.keyboard.repeat]
delay = 195
interval = 15
[data.input.mouse]
fix_scroll = {{ promptBoolOnce . "input.mouse.fix_scroll" "(mouse) fix_scroll" }}
[data.ui]
palette = {{ promptChoiceOnce . "ui.palette" "(catppuccin) palette" (list "mocha" "macchiato" "frappe" "latte") | quote }}
[data.ui.hot_corners]
{{- $name_map := dict
"no-op" "0"
"mission-control" "2"
"app-windows" "3"
"desktop" "4"
"screen-saver" "5"
"disable-screen-saver" "6"
"dashboard" "7"
"sleep" "10"
"launchpad" "11"
"notification-center" "12"
"lock" "13"
}}
{{- $name_list := keys $name_map }}
[data.ui.hot_corners.top_left]
name = {{ $name := promptChoiceOnce . "ui.hot_corners.top_left.name" "(hot-corner) top-left" $name_list "mission-control" }}{{ $name | quote }}
id = {{ get $name_map $name }}
[data.ui.hot_corners.top_right]
name = {{ $name := promptChoiceOnce . "ui.hot_corners.top_right.name" "(hot-corner) top-right" $name_list "app-windows" }}{{ $name | quote }}
id = {{ get $name_map $name }}
[data.ui.hot_corners.bottom_left]
name = {{ $name := promptChoiceOnce . "ui.hot_corners.bottom_left.name" "(hot-corner) bottom-left" $name_list "no-op" }}{{ $name | quote }}
id = {{ get $name_map $name }}
[data.ui.hot_corners.bottom_right]
name = {{ $name := promptChoiceOnce . "ui.hot_corners.bottom_right.name" "(hot-corner) bottom-right" $name_list "no-op" }}{{ $name | quote }}
id = {{ get $name_map $name }}
[data.git]
enabled = {{ $git := promptBoolOnce . "git.enabled" "(git) enable" }}{{ $git }}
{{- if $git }}
{{- $default_name := "Sumit Sahrawat" }}
{{- $default_email := "[email protected]" }}
{{- $default_key := "id_ed25519" }}
{{- $default_username := "sumit-sahrawat" }}
{{- $ssh_dir := joinPath .chezmoi.homeDir ".ssh" }}
[data.git.global.user]
name = {{ promptStringOnce . "git.global.user.name" "(~/.config/git/config) user.name" $default_name | quote }}
email = {{ promptStringOnce . "git.global.user.email" "(~/.config/git/config) user.email" $default_email | quote }}
key_name = {{ $code_key := promptStringOnce . "git.global.user.key_name" "(~/.config/git/config) user.signingkey (file name only)" $default_key }}{{ $code_key | quote }}
key = {{ joinPath $ssh_dir $code_key | quote }}
[data.git.global.github]
username = {{ promptStringOnce . "git.global.github.username" "(~/.gh/hosts.yml) github.com username" $default_username | quote }}
[data.git.work]
enabled = {{ $git_work := promptBoolOnce . "git.work.enabled" "(~/Work) enable" }}{{ $git_work }}
{{- if $git_work }}
[data.git.work.user]
name = {{ promptStringOnce . "git.work.user.name" "(~/Work) user.name" $default_name | quote }}
email = {{ promptStringOnce . "git.work.user.email" "(~/Work) user.email" $default_email | quote }}
key_name = {{ $work_key := promptStringOnce . "git.work.user.key_name" "(~/Work) user.key" $default_key }}{{ $work_key | quote }}
key = {{ joinPath $ssh_dir $work_key | quote }}
[data.git.work.github]
username = {{ promptStringOnce . "git.work.github.username" "(~/Work) github.username" $default_username | quote }}
[data.git.work.ghe]
enabled = {{ $work_ghe := promptBoolOnce . "git.work.ghe.enabled" "(~/Work) ghe.enabled" }}{{ $work_ghe }}
{{- if $work_ghe }}
hostname = {{ promptStringOnce . "git.work.ghe.hostname" "(~/Work) ghe.hostname" | quote }}
username = {{ promptStringOnce . "git.work.ghe.username" "(~/Work) ghe.username" $default_username | quote }}
{{- end }}
{{- end }}
{{- end }}
[data.zsh]
enabled = {{ promptBoolOnce . "zsh.enabled" "(zsh) enable" }}
[data.helix]
enabled = {{ promptBoolOnce . "helix.enabled" "(helix) enable" }}
executable = "hx"
[data.alacritty]
enabled = {{ $alacritty := promptBoolOnce . "alacritty.enabled" "(alacritty) enable" }}{{ $alacritty }}
[data.kitty]
enabled = {{ $kitty := promptBoolOnce . "kitty.enabled" "(kitty) enable" }}{{ $kitty }}
[data.terminal]
enabled = {{ $terminal := or $alacritty $terminal }}{{ $terminal }}
{{- if $terminal }}
[data.terminal.font]
pragmata = {{ $pragmata := promptBoolOnce . "terminal.font.pragmata" "(terminal) font.pragmata" true }}{{ $pragmata }}
non_liga_family = {{ ternary "PragmataPro Mono" "Iosevka Term SS08" $pragmata | quote }}
liga_family = {{ ternary "PragmataPro Mono Liga" "Iosevka Term SS08" $pragmata | quote }}
size = {{ promptIntOnce . "terminal.font.size" "(terminal) font.size" 16 }}
{{- end }}
[data.mpv]
enabled = {{ promptBoolOnce . "mpv.enabled" "(mpv) enable" }}
[data.bat]
enabled = {{ promptBoolOnce . "bat.enabled" "(bat) enable" }}
[data.eza]
enabled = {{ promptBoolOnce . "eza.enabled" "(eza) enable" }}
[data.ripgrep]
enabled = {{ promptBoolOnce . "ripgrep.enabled" "(ripgrep) enable" }}
[data.fd]
enabled = {{ promptBoolOnce . "fd.enabled" "(fd) enable" }}
[data.sd]
enabled = {{ promptBoolOnce . "sd.enabled" "(sd) enable" }}
[data.bottom]
enabled = {{ promptBoolOnce . "bottom.enabled" "(bottom) enable" }}
[data.duf]
enabled = {{ promptBoolOnce . "duf.enabled" "(duf) enable" }}
[data.bandwhich]
enabled = {{ promptBoolOnce . "bandwhich.enabled" "(bandwhich) enable" }}
[data.dust]
enabled = {{ promptBoolOnce . "dust.enabled" "(dust) enable" }}
[data.procs]
enabled = {{ promptBoolOnce . "procs.enabled" "(procs) enable" }}
[data.tokei]
enabled = {{ promptBoolOnce . "tokei.enabled" "(tokei) enable" }}
[data.hyperfine]
enabled = {{ promptBoolOnce . "hyperfine.enabled" "(hyperfine) enable" }}
[data.tealdeer]
enabled = {{ promptBoolOnce . "tealdeer.enabled" "(tealdeer) enable" }}
[data.qalc]
enabled = {{ promptBoolOnce . "qalc.enabled" "(qalc) enable" }}
[data.lang]
bash = {{ promptBoolOnce . "lang.bash" "(lang) bash" }}
cpp = {{ promptBoolOnce . "lang.cpp" "(lang) cpp" }}
haskell = {{ promptBoolOnce . "lang.haskell" "(lang) haskell" }}
markdown = {{ promptBoolOnce . "lang.markdown" "(lang) markdown" }}
python = {{ promptBoolOnce . "lang.python" "(lang) python" }}
rust = {{ promptBoolOnce . "lang.rust" "(lang) rust" }}
dotnet = {{ promptBoolOnce . "lang.dotnet" "(lang) dotnet" }}