Add komorebic.exe command to add new workspace to focused monitor #6

Closed
opened 2026-01-05 14:47:37 +01:00 by adam · 0 comments
Owner

Originally created by @LGUG2Z on GitHub (Aug 14, 2021).

Workspaces in komorebi are unrelated to Windows Virtual Desktops; they are implemented as a thin layer on top of the existing DWM by showing and hiding windows programmatically. You have a few options for workspace creation right now:

komorebic.exe ensure workspaces MONITOR_IDX DESIRED_WORKSPACE_COUNT

This is usually run at the start of a config file to ensure the minimum number of workspaces that you want to work with on each monitor.

komorebic.exe focus-workspace WORKSPACE_IDX

This will try to switch to the given workspace index on the active monitor, and if it doesn't exist, it will be created, along with any other required workspace indices on the way. For example, if you only have one workspace (0) on the monitor, and you try to focus workspace index 3, workspaces 1 and 2 will also be created in the process.

I think it's a good idea to have a command that will just append a new workspace on the currently focused monitor (similar to the Win+Ctrl+D behaviour); I'll open a separate ticket to track this.

Originally posted by @LGUG2Z in https://github.com/LGUG2Z/komorebi/issues/1#issuecomment-898892820

Originally created by @LGUG2Z on GitHub (Aug 14, 2021). Workspaces in `komorebi` are unrelated to Windows Virtual Desktops; they are implemented as a thin layer on top of the existing DWM by showing and hiding windows programmatically. You have a few options for workspace creation right now: ```powershell komorebic.exe ensure workspaces MONITOR_IDX DESIRED_WORKSPACE_COUNT ``` This is usually run at the start of a config file to ensure the minimum number of workspaces that you want to work with on each monitor. ```powershell komorebic.exe focus-workspace WORKSPACE_IDX ``` This will try to switch to the given workspace index on the active monitor, and if it doesn't exist, it will be created, along with any other required workspace indices on the way. For example, if you only have one workspace (`0`) on the monitor, and you try to focus workspace index `3`, workspaces `1` and `2` will also be created in the process. I think it's a good idea to have a command that will just append a new workspace on the currently focused monitor (similar to the Win+Ctrl+D behaviour); I'll open a separate ticket to track this. _Originally posted by @LGUG2Z in https://github.com/LGUG2Z/komorebi/issues/1#issuecomment-898892820_
adam added the enhancement label 2026-01-05 14:47:37 +01:00
adam closed this issue 2026-01-05 14:47:37 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#6