Skip to content

v0.9.14

Latest

Choose a tag to compare

@BlueManCZ BlueManCZ released this 30 Jul 06:50
e0ddcbc

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