mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[FEAT]: Monitor specific workspace config #363
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CtByte on GitHub (May 3, 2024).
Is your feature request related to a problem? Please describe.
When having multiple monitors, the workspace configuration is applied randomly.
The ABC workspaces are used on monitor1 and the 123 workspaces are used on monitor2, but sometimes it is swapped. It can simply be replicated by using different layouts (or Zebar, using the config in appendix).
I am using a laptop with 2 monitors (laptop closed and screen unused). Which can be the reason for the randomness or it is simply due to connection race issue to the monitors.
Describe the solution you'd like
Have the option to specify the monitor name (same as from
komorebic state) in the configuration.If the monitor cannot be found by that name, then ignore it and fallback to a default config.
The current default would suffice, but with at least a default name. Meaning
{ "name": "BSP", "layout": "BSP" }.The current behaviour seems to be that in the case of a single config and 2 monitors, the second monitor will get a 1xBSP config. It can be up to debate, that the default behaviour in this case should rather be a copy of the first unnamed config.
Meaning, a config like this on 2 monitors:
Would be more like this:
Current default fallback seems to be:
Appendix
Zebar config for multiple monitors.
@CtByte commented on GitHub (May 17, 2024):
https://github.com/LGUG2Z/komorebi/issues/828#issuecomment-2118220036