Cookbook: Recipes¶
Thirty short recipes for common tasks.
Installation & Update¶
1. Install on a fresh machine¶
bash -c "$(curl -fsSL https://raw.githubusercontent.com/sebastienrousseau/dotfiles/main/install.sh)"
2. Update everything¶
3. Update dotfiles only (no tools)¶
4. Preview what would change¶
Themes¶
5. Switch to a specific theme¶
6. Toggle between dark and light¶
7. Open the interactive theme picker¶
8. List paired wallpaper themes¶
9. Add a new wallpaper-driven theme¶
cp my-wallpaper.jpg ~/Pictures/Wallpapers/myname-dark.jpg
cp my-wallpaper-light.jpg ~/Pictures/Wallpapers/myname-light.jpg
bash scripts/theme/merge-wallpaper.sh myname
dot theme rebuild
dot theme myname-dark
10. Regenerate all themes from scratch¶
Configuration¶
11. Edit the source directory¶
12. Add a new config file to chezmoi¶
13. Remove a managed file¶
14. Show configuration drift¶
15. Show diff against source¶
Secrets¶
16. Encrypt a new secret file¶
17. Edit an encrypted file¶
18. Rotate your Age key¶
age-keygen -o ~/.config/age/keys.txt.new
# Update .sops.yaml with new public key
# Then:
find . -name '*.sops.yaml' -exec sops updatekeys {} \;
git commit -sS -am "chore(secrets): rotate age key"