mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[FEAT]: Static configuration loading #207
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Originally created by @LGUG2Z on GitHub (May 12, 2023).
Originally assigned to: @LGUG2Z on GitHub.
Is your feature request related to a problem? Please describe.
Not necessarily a problem for me, but I see many users express a preference for other tiling window managers that allow the loading of static configuration from YAML/TOML/etc files. Allowing similar static configuration loading could reduce friction for users who are not confident using PowerShell or AHK to configure
komorebi.Describe the solution you'd like
Expose a flag and/or an environment variable which points to a static configuration file that can be loaded at startup. Ideally, this would also allow users to consume a reference to an
applications.yaml(ie. allowing them to pin to a specific revision) for app-specific fixes.A JSONSchema file should also be published so that users can benefit from autocompletions when editing this static configuration file.
Describe alternatives you've considered
Improve education on runtime configuration, though I don't think this will really change the minds of people who are dead set on using static configuration files.
@LGUG2Z commented on GitHub (Jun 16, 2023):
Video on the development of this feature and how to use it while it's still being worked on: https://www.youtube.com/watch?v=ucQ1eBdAZqU
@LGUG2Z commented on GitHub (Jun 17, 2023):
On the feature/static-config branch you can now start whkd directly from the komorebic start so you end up with...
This means you don't need a
komorebi.ps1orkomorebi.ahkfile at all anymore if you don't want to use oneYou can also use this JSON Schema to autocomplete (with documentation!) your
komorebi.jsonstatic configuration files: https://raw.githubusercontent.com/LGUG2Z/komorebi/fb737366af28c1ccafed1b9e9af2a980eca192e6/schema.jsonI'll be looking at updating the quickstart guide and readme soon to reflect these changes, and I think this is the last thing that needs to be done before merging this into the
masterbranch!@LGUG2Z commented on GitHub (Jun 21, 2023):
The latest version of this branch now also automatically watches the
komorebi.jsonfile for changes and applies them. 👌@LGUG2Z commented on GitHub (Jun 23, 2023):
The latest version of this branch includes a new command,
komorebic generate-static-config, which dumps the current config state ofkomorebito a JSON object in the terminal:https://www.youtube.com/watch?v=2PK1ie-R1Z8
@LGUG2Z commented on GitHub (Jun 26, 2023):
The latest version of this branch includes a new command,
komorebic fetch-ascwhich will updateapplications.yamlto the latest version in the user's config directory:https://www.youtube.com/watch?v=STlES_16q3o