[FEAT]: Need a way to clear workspace rules #429

Closed
opened 2026-01-05 14:50:41 +01:00 by adam · 2 comments
Owner

Originally created by @genotrance on GitHub (Jul 9, 2024).

Is your feature request related to a problem? Please describe.
I've setup a bunch of workspace-rule using a script that reads a json containing a reference komorebic state. This makes all my windows adapt to a new monitor layout. I have multiple json for the different setups I have to deal with.

I would like move around a few windows and save as a new state json but it is not possible since those window moves contradict the workspace rules I have setup. The windows pop back into their original workspace per the rules and state is not updated.

Describe the solution you'd like
komrebic should include the following commands, similar to the clear-workspace-layout-rules and named variant:

  • clear-workspace-rules
  • clear-named-workspace-rules
  • clear-initial-workspace-rules
  • clear-initial-named-workspace-rules

Clearing the rules should not change the existing state of the windows so that I can make any adjustments and then dump the state for later use.

Describe alternatives you've considered
Only alternative is to restart komorebi and then re-setup all windows how I want. For 15+ windows, this is very painful across the many states I have to maintain.

Originally created by @genotrance on GitHub (Jul 9, 2024). **Is your feature request related to a problem? Please describe.** I've setup a bunch of `workspace-rule` using a script that reads a json containing a reference `komorebic state`. This makes all my windows adapt to a new monitor layout. I have multiple json for the different setups I have to deal with. I would like move around a few windows and save as a new state json but it is not possible since those window moves contradict the workspace rules I have setup. The windows pop back into their original workspace per the rules and state is not updated. **Describe the solution you'd like** `komrebic` should include the following commands, similar to the `clear-workspace-layout-rules` and named variant: - clear-workspace-rules - clear-named-workspace-rules - clear-initial-workspace-rules - clear-initial-named-workspace-rules Clearing the rules should not change the existing state of the windows so that I can make any adjustments and then dump the state for later use. **Describe alternatives you've considered** Only alternative is to restart komorebi and then re-setup all windows how I want. For 15+ windows, this is very painful across the many states I have to maintain.
adam added the enhancement label 2026-01-05 14:50:41 +01:00
adam closed this issue 2026-01-05 14:50:41 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Jul 9, 2024):

Make sense, will try to sneak these in for the next release 🤞

@LGUG2Z commented on GitHub (Jul 9, 2024): Make sense, will try to sneak these in for the next release 🤞
Author
Owner

@genotrance commented on GitHub (Jul 10, 2024):

Tested and works as expected.

@genotrance commented on GitHub (Jul 10, 2024): Tested and works as expected.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#429