dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

What is the optimal pattern for managing multi-machine configs (Desktop vs. Laptop) in a unified setup?

Open mylinuxforwork opened this issue 3 months ago • 2 comments

Discussed in https://github.com/mylinuxforwork/dotfiles/discussions/1793

Originally posted by H7ioo August 15, 2026 Hi everyone,

I am managing my dotfiles across two primary systems (a desktop PC and a laptop). While most of my environment is shared, a subset of configurations inevitably diverges per host (e.g., monitor layouts, display scaling, power profiles, host-specific keybinds).

Tools like chezmoi offer templating (.tmpl) and ignore rules (.chezmoiignore), but they create friction with ML4W. Because ML4W already symlinks dotfiles, I can only track custom configs, yet upstream updates continuously reset pointer files (e.g., keybinding.lua) back to default.lua, breaking custom keybinds and forcing manual fixes.

For those running a unified dotfiles setup across multiple machines, I'd love to hear how you structure your repositories and what trade-offs you've encountered with each approach.

mylinuxforwork avatar Aug 15 '26 14:08 mylinuxforwork

Hi there!

Instead of configuring the existing files, you can create a file named custom.lua inside the hypr directory and put all your configurations there. This file won't be overwritten when you update ML4W.

The Wiki also has a guide on how to create a blacklist file.

Sorry I can't provide clearer examples right now; I'm currently on my phone and away from my computer.

elppans avatar Aug 17 '26 21:08 elppans

Hello,

I'm finally at my computer and took the opportunity to grab a screenshot of the file I mentioned.

The file named custom.lua is where you need to add all your configurations; it should be placed in the ~/.config/hypr directory.
You won't have to worry about updates with this file, as it won't get overwritten.

Image

Regarding the blacklist file I mentioned, here is the link you can follow to test it out (I haven't tested it myself yet): Preserve your customization

elppans avatar Aug 18 '26 03:08 elppans