-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdotfm.toml
More file actions
306 lines (239 loc) · 8.44 KB
/
Copy pathdotfm.toml
File metadata and controls
306 lines (239 loc) · 8.44 KB
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
# dotfm registry for V:/github.com/ShortArrow/dotfiles
#
# This file declares every tool that dotfm knows how to link on this dotfiles repo.
# Per-machine tool selection lives in ~/.config/dotfm/config.toml.
#
# Schema:
# [tools.<name>] # tool entry
# description = "..." # shown by `dotfm list`
# platforms = ["windows","linux"] # optional OS filter
#
# [[tools.<name>.links]]
# src = "<path relative to this file>"
# dst.windows = "$APPDATA/..." # env vars expanded at apply time
# dst.linux = "$XDG_CONFIG_HOME/..."
#
# Supported dst variables: $HOME, $USERPROFILE, $APPDATA, $LOCALAPPDATA,
# $XDG_CONFIG_HOME (falls back to $HOME/.config), ~.
# ---- Category A: simple symlinks ----
[tools.alacritty]
description = "Alacritty terminal emulator"
[[tools.alacritty.links]]
src = "alacritty"
dst.windows = "$APPDATA/alacritty"
dst.linux = "$XDG_CONFIG_HOME/alacritty"
[tools.mise]
description = "mise version manager"
[[tools.mise.links]]
src = "mise/src/config.toml"
dst.windows = "$USERPROFILE/.config/mise/config.toml"
dst.linux = "$XDG_CONFIG_HOME/mise/config.toml"
[tools.starship]
description = "Starship prompt"
[[tools.starship.links]]
src = "starship/starship.toml"
dst.windows = "$USERPROFILE/.config/starship.toml"
dst.linux = "$XDG_CONFIG_HOME/starship.toml"
[tools.wezterm]
description = "WezTerm terminal emulator"
[[tools.wezterm.links]]
src = "wezterm/.wezterm.lua"
dst.windows = "$USERPROFILE/.wezterm.lua"
dst.linux = "$HOME/.wezterm.lua"
[tools.vim]
description = "Vim (.vimrc and .gvimrc)"
# .gvimrc has no Linux destination; apply platforms per link instead
[[tools.vim.links]]
src = "vim/.vimrc"
dst.windows = "$USERPROFILE/.vimrc"
dst.linux = "$HOME/.vimrc"
[[tools.vim.links]]
src = "vim/.gvimrc"
dst.windows = "$USERPROFILE/.gvimrc"
[tools.runex]
description = "runex abbreviation engine"
[[tools.runex.links]]
src = "runex/config.toml"
dst.windows = "$USERPROFILE/.config/runex/config.toml"
dst.linux = "$XDG_CONFIG_HOME/runex/config.toml"
[tools.clink]
description = "Clink (generates runex clink integration into %LOCALAPPDATA%/clink)"
platforms = ["windows"]
[tools.clink.script]
windows = "clink/setup.ps1"
[tools.zed]
description = "Zed editor"
[[tools.zed.links]]
src = "zed/src"
dst.windows = "$APPDATA/Zed"
dst.linux = "$XDG_CONFIG_HOME/zed"
[tools.glazewm]
description = "GlazeWM tiling window manager (Windows only)"
platforms = ["windows"]
# config.yaml is generated, not linked: GlazeWM reads a single file with no
# include directive, and the machine-specific ignore list is untracked. The
# merge script is linked so the reload keybinding can reach it by a stable path.
[[tools.glazewm.links]]
src = "glazewm/Merge-GlazewmConfig.ps1"
dst.windows = "$USERPROFILE/.glzr/glazewm/Merge-GlazewmConfig.ps1"
[tools.glazewm.script]
windows = "glazewm/Merge-GlazewmConfig.ps1"
[tools.glazewm.doctor]
windows = "glazewm/doctor.ps1"
[tools.lazygit]
description = "lazygit TUI"
# Windows pulls the whole directory into %LOCALAPPDATA%\lazygit, matching the
# legacy setup.ps1 behavior. Linux only needs the config file.
[[tools.lazygit.links]]
src = "lazygit"
dst.windows = "$LOCALAPPDATA/lazygit"
[[tools.lazygit.links]]
src = "lazygit/config.yml"
dst.linux = "$XDG_CONFIG_HOME/lazygit/config.yml"
[tools.code]
description = "VS Code user settings"
[[tools.code.links]]
src = { dir = "code", include = ["settings.json", "keybindings.json"] }
dst.windows = "$APPDATA/Code/User"
dst.linux = "$XDG_CONFIG_HOME/Code/User"
[tools.codeinsiders]
description = "VS Code Insiders user settings"
[[tools.codeinsiders.links]]
src = { dir = "codeinsiders", include = ["settings.json", "keybindings.json"] }
dst.windows = "$APPDATA/Code - Insiders/User"
dst.linux = "$XDG_CONFIG_HOME/Code - Insiders/User"
# ---- Category B: symlink + post-apply side effects ----
[tools.git]
description = "Git global config (+ set init.defaultBranch, install the hooks)"
# core.hooksPath needs the absolute path of this checkout, which no declarative
# run = [...] can produce, so the setup scripts own that one line.
[tools.git.script]
windows = "git/setup.ps1"
linux = "git/setup.sh"
macos = "git/setup.sh"
[[tools.git.post_apply]]
run = ["git", "config", "--global", "init.defaultBranch", "main"]
[[tools.git.post_apply]]
run = ["git", "config", "--global", "core.pager", "delta"]
[[tools.git.post_apply]]
run = ["git", "config", "--global", "interactive.diffFilter", "delta --color-only"]
[[tools.git.post_apply]]
run = ["git", "config", "--global", "delta.navigate", "true"]
[[tools.git.post_apply]]
run = ["git", "config", "--global", "merge.conflictStyle", "zdiff3"]
[tools.git-signing]
description = "Sign with vault-held SSH keys via the Bitwarden agent"
platforms = ["windows"]
[tools.git-signing.script]
windows = "git/signing.ps1"
# Mutually exclusive with git-signing: both own gpg.format, last applied wins.
[tools.git-signing-gpg]
description = "Sign with GPG (OpenPGP) instead of the Bitwarden SSH agent"
[tools.git-signing-gpg.script]
windows = "git/signing-gpg.ps1"
linux = "git/signing-gpg.sh"
macos = "git/signing-gpg.sh"
[tools.nvim]
description = "Neovim configuration directory"
[[tools.nvim.links]]
src = "nvim/src"
dst.windows = "$LOCALAPPDATA/nvim"
dst.linux = "$XDG_CONFIG_HOME/nvim"
[tools.pwsh]
description = "PowerShell myplug sourced from $PROFILE"
platforms = ["windows"]
[[tools.pwsh.links]]
src = "pwsh/src"
dst.windows = "$USERPROFILE/Documents/PowerShell/myplug"
# User's $PROFILE is left untouched; add `. $HOME/Documents/PowerShell/myplug/pwsh_myplug.ps1`
# once to bootstrap (see pwsh/readme).
[tools.claude]
description = "Claude Code settings (notify.ps1, CLAUDE.md, statusline.sh, check-attribution.sh)"
[[tools.claude.links]]
src = { dir = "claude", include = ["notify.ps1", "CLAUDE.md", "statusline.sh", "check-attribution.sh", "check-machine-guards.sh"] }
dst.windows = "$USERPROFILE/.claude"
dst.linux = "$HOME/.claude"
[tools.zebar]
description = "Zebar taskbar (Windows only)"
platforms = ["windows"]
[[tools.zebar.links]]
src = { dir = "zebar", include = ["config.yaml", "script.js", "start.bat", "start.sh", "overline-zebar"] }
dst.windows = "$USERPROFILE/.glzr/zebar"
[tools.npm]
description = "npm client config (Windows only: routes run-scripts through pwsh)"
platforms = ["windows"]
[[tools.npm.links]]
src = "js/npmrc"
dst.windows = "$USERPROFILE/.npmrc"
# ---- Category B with custom logic delegated to existing setup scripts ----
[tools.bash]
description = "bash myplug (edits ~/.bashrc and ~/.bash_profile)"
platforms = ["linux"]
[tools.bash.script]
linux = "bash/setup.sh"
# ---- Linux-only simple symlinks ----
[tools.hyprland]
description = "Hyprland window manager"
platforms = ["linux"]
[[tools.hyprland.links]]
src = "hyprland/hypr"
dst.linux = "$XDG_CONFIG_HOME/hypr"
[tools.lazydocker]
description = "lazydocker TUI"
platforms = ["linux"]
[[tools.lazydocker.links]]
src = "lazydocker"
dst.linux = "$XDG_CONFIG_HOME/lazydocker"
[tools.waybar]
description = "Waybar status bar"
platforms = ["linux"]
[[tools.waybar.links]]
src = "waybar/src"
dst.linux = "$XDG_CONFIG_HOME/waybar"
[tools.wofi]
description = "Wofi launcher"
platforms = ["linux"]
[[tools.wofi.links]]
src = "wofi/src"
dst.linux = "$XDG_CONFIG_HOME/wofi"
[tools.yazi]
description = "Yazi terminal file manager"
[[tools.yazi.links]]
src = "yazi/src"
dst.windows = "$APPDATA/yazi/config"
dst.linux = "$XDG_CONFIG_HOME/yazi"
[tools.zellij]
description = "Zellij terminal multiplexer"
platforms = ["linux"]
[[tools.zellij.links]]
src = "zellij"
dst.linux = "$XDG_CONFIG_HOME/zellij"
# ---- Delegation to legacy setup scripts (too exotic for declarative links) ----
[tools.tmux]
description = "tmux config (downloads theme, creates ~/.tmux_myplug)"
platforms = ["linux"]
[tools.tmux.script]
linux = "tmux/setup.sh"
[tools.keyd]
description = "keyd (/etc/keyd, requires root)"
platforms = ["linux"]
[tools.keyd.script]
linux = "keyd/setup.sh"
[tools.nvim-rescue]
description = "Isolated fallback Neovim config, launched via NVIM_APPNAME"
[[tools.nvim-rescue.links]]
src = "nvim-rescue"
dst.windows = "$LOCALAPPDATA/nvim-rescue"
dst.linux = "$XDG_CONFIG_HOME/nvim-rescue"
# ---- Doctor-only meta tools (no symlinks, just checks) ----
[tools.windows]
description = "Windows environment health checks (no symlinks)"
platforms = ["windows"]
[tools.windows.doctor]
windows = "windows/doctor.ps1"
[tools.herdr]
description = "herdr terminal client"
platforms = ["windows"]
[[tools.herdr.links]]
src = "herdr/config.toml"
dst.windows = "$APPDATA/herdr/config.toml"