Skip to content

Add a new IPC message for requesting structured configuration#4427

Draft
j-jzk wants to merge 2 commits into
i3:nextfrom
j-jzk:list-bindings-2
Draft

Add a new IPC message for requesting structured configuration#4427
j-jzk wants to merge 2 commits into
i3:nextfrom
j-jzk:list-bindings-2

Conversation

@j-jzk
Copy link
Copy Markdown
Contributor

@j-jzk j-jzk commented May 19, 2021

Adds a new IPC message for requesting the configuration in JSON, as discussed in #4293.

I wanted to generate the JSON somewhat automatically, but didn't find any acceptable way of doing it - if we generated the JSON at the same time we parsed the config file, the result wouldn't be very structured and would have duplicit values if some directives were set and then overridden.

TODO:

  • parts of the configuration:
    • keybindings
    • workspaces
    • bar
  • tests
  • documentation

Adds a non-complete implementation of a new IPC message,
get_config_json, which returns the current configuration as JSON.
@j-jzk j-jzk force-pushed the list-bindings-2 branch from c95b1e0 to 4691c64 Compare May 19, 2021 12:18
@orestisfl
Copy link
Copy Markdown
Member

Thanks!

Let me take a look first before putting more time into this.

@orestisfl orestisfl self-requested a review May 19, 2021 14:17
@j-jzk
Copy link
Copy Markdown
Contributor Author

j-jzk commented May 24, 2021

@orestisfl What's up? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants