You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Document.lua records whether a document was read from a Lua config, so consumers can tell the two formats apart without guessing from the file suffix.
Fixed
Document.save() writes Lua for documents read from a Lua config. It only ever emitted Hyprlang, so saving hyprland.lua (directly or through hyprland-state) replaced it with .conf syntax that Hyprland refuses to parse. A target path naming a format still wins, so saving a Lua document to .conf (or the reverse) converts it. BlueManCZ/hyprland-state#2
Editing an option read from a Lua config keeps its category prefix. Those assignments held the bare leaf in key while sitting at top level with no enclosing section, so the first set() rewrote general:border_size = 2 as border_size = 2, losing the category on the Hyprlang path and in migrate(). BlueManCZ/hyprland-state#2