feat(cli): quickstart, autostart and the config commands

komorebic quickstart writes an example komorebi.json and applications.json into
the config home, asking before it writes over a file, so a new user has a
configuration to start from. komorebic enable-autostart writes the XDG autostart
entry that has Plasma start komorebi at login, with the komorebi.json it is
given if any, and disable-autostart takes it away; the NixOS module does the
same job for a machine that has it.

komorebic replace-configuration makes the running daemon start over from another
komorebi.json: it pauses its window manager and brings back the windows it hid,
the back of a stack, so that none is out of sight for the new one to miss, then
makes the window manager again from the file, with the monitors and the windows
the backend has, and watches the new file in place of the old one. A file that
does not read is logged and the daemon carries on as it was.
This commit is contained in:
LGUG2Z committed 2026-10-28 07:20:37 -07:00
1 parent 3a3a0f8f24
commit c6874ff5db
20 files changed
+649 -15

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
```text
Removes the XDG autostart entry
Usage: disable-autostart
Options:
-h, --help
Print help
```
+13
View File
@@ -0,0 +1,13 @@
```text
Writes an XDG autostart entry so komorebi starts with the Plasma session
Usage: enable-autostart [OPTIONS]
Options:
-c, --config <CONFIG>
Path to a static configuration JSON file
-h, --help
Print help
```
+10
View File
@@ -0,0 +1,10 @@
```text
Gather example configurations for a new-user quickstart
Usage: quickstart
Options:
-h, --help
Print help
```
+14
View File
@@ -0,0 +1,14 @@
```text
Replace the configuration of a running instance of komorebi from a static configuration file
Usage: replace-configuration <PATH>
Arguments:
<PATH>
Static configuration JSON file from which the configuration should be loaded
Options:
-h, --help
Print help
```