Manage imports
As your config grow bigger you will probably want to split it into multiple files.
Config imports
Instead of having all your configs defined in a single toml file, you can split it into multiple file :
[settings.dots]
alacritty = { source = "alacritty", target = ".config/alacritty" }
zsh = { source = "zsh/zshrc", target = ".zshrc" }
[[import]]
path = "sway/sway.toml"
[[import]]
path = "i3/i3.toml"
In this example we have defined our i3
and sway
profile in separate files :
# {dotfile_dir}/i3/i3.toml
[profiles.i3]
posthooks = ["i3-msg reload"]
[profiles.i3.dots]
i3 = { source = "i3/wm", target = ".config/i3" }
polybar = { source = "i3/polybar", target = ".config/polybar" }
rofi = { source = "i3/rofi", target = ".config/rofi" }