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.
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
I'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 master branch!
@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...
```pwsh
# ❯ komorebic start -c C:\Users\LGUG2Z\komorebi.json --whkd
Start-Process 'komorebi.exe' -ArgumentList '--config=C:\Users\LGUG2Z\komorebi.json' -WindowStyle hidden
# Waiting for komorebi.exe to start...Started!
if (!(Get-Process whkd -ErrorAction SilentlyContinue))
{
Start-Process whkd -WindowStyle hidden
}
```
This means you don't need a `komorebi.ps1` or `komorebi.ahk` file at all anymore if you don't want to use one
You can also use this JSON Schema to autocomplete (with documentation!) your `komorebi.json` static configuration files: https://raw.githubusercontent.com/LGUG2Z/komorebi/fb737366af28c1ccafed1b9e9af2a980eca192e6/schema.json
I'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 `master` branch!
The latest version of this branch now also automatically watches the komorebi.json file for changes and applies them. 👌
@LGUG2Z commented on GitHub (Jun 21, 2023):
The latest version of this branch now also automatically watches the `komorebi.json` file for changes and applies them. 👌
The latest version of this branch includes a new command, komorebic generate-static-config, which dumps the current config state of komorebi to a JSON object in the terminal:
The latest version of this branch includes a new command, komorebic fetch-asc which will update applications.yaml to the latest version in the user's config directory:
❯ komorebic fetch-asc
Latest version of applications.yaml from https://github.com/LGUG2Z/komorebi-application-specific-configuration downloaded
You can add this to your komorebi.json static configuration file like this:
"app_specific_configuration_path": "C:/Users/LGUG2Z/.config/komorebi/applications.yaml"
@LGUG2Z commented on GitHub (Jun 26, 2023):
The latest version of this branch includes a new command, `komorebic fetch-asc` which will update `applications.yaml` to the latest version in the user's config directory:
```
❯ komorebic fetch-asc
Latest version of applications.yaml from https://github.com/LGUG2Z/komorebi-application-specific-configuration downloaded
You can add this to your komorebi.json static configuration file like this:
"app_specific_configuration_path": "C:/Users/LGUG2Z/.config/komorebi/applications.yaml"
```
https://www.youtube.com/watch?v=STlES_16q3o
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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