Keep a desk colour the machine set itself, past the runtime theme #13
Loading…
Reference in a new issue
No description provided.
Delete branch "niri-pins"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A machine that set
programs.niri.settings.layout.background-color(black sets#00000000, to drop the veil over each desk) lost it as soon as fjordxy-theme rendered: the runtimeniri-theme.kdlfragment is included after the generated config, and it wrote the theme'sdesk_background, so the white veil came back.nix/niri.nix: finds whether the machine set that option at higher than default priority, and writes~/.config/fjordxy/pins.json. That is{ desk_background = <value>; }when it did,{}otherwise.nix/fjordxy-theme.py: reads the pins and lets them override the theme's values when rendering.niri-theme.kdl.tpl: a comment saying where the value can come from.Tested:
#00000000, and a machine that sets nothing writes{}#00000000with the pin and the theme's#ede8de33without it🤖 Generated with Claude Code