mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-18 06:16:46 +01:00
This commit is an implementation of a static JSON configuration loader. An example komorebi.json configuration file has been added. The application-specific configurations can be loaded directly from a file, and workspace configuration can be defined declaratively in the JSON. Individual rules etc. can also be added directly in the static configuration as one-offs. A JSONSchema can be generated using komorebic's static-config-schema command. This should be added to something like SchemaStore later. Loading from static configuration is significantly faster on startup, as the lock does not have to be reacquired for every command that is sent over the socket. When loading configuration from a static JSON file, a hotwatch instance will automatically be created to listen to file changes and apply any updates to both the global and window manager configuration state. A new --whkd flag has been added to the komorebic start command to optionally start whkd in a background process. A new komorebic command 'generate-static-config' has been added to help existing users migrate to a static JSON config file. Currently, custom layout file path information can not be automatically populated in the output of this command and must be added manually by the user if required. A new komorebic command 'fetch-asc' has been added to help users update to the latest version of the application-specific configurations in-place. re #427
26 lines
788 B
JSON
26 lines
788 B
JSON
{
|
|
"app_specific_configuration_path": "$Env:USERPROFILE/applications.yaml",
|
|
"window_hiding_behaviour": "Cloak",
|
|
"cross_monitor_move_behaviour": "Insert",
|
|
"alt_focus_hack": true,
|
|
"default_workspace_padding": 20,
|
|
"default_container_padding": 20,
|
|
"active_window_border": false,
|
|
"active_window_border_colours": {
|
|
"single": { "r": 66, "g": 165, "b": 245 },
|
|
"stack": { "r": 256, "g": 165, "b": 66 },
|
|
"monocle": { "r": 255, "g": 51, "b": 153 }
|
|
},
|
|
"monitors": [
|
|
{
|
|
"workspaces": [
|
|
{ "name": "I", "layout": "BSP" },
|
|
{ "name": "II", "layout": "VerticalStack" },
|
|
{ "name": "III", "layout": "HorizontalStack" },
|
|
{ "name": "IV", "layout": "UltrawideVerticalStack" },
|
|
{ "name": "V", "layout": "Rows" }
|
|
]
|
|
}
|
|
]
|
|
}
|