[BUG]: Widthpercentage not applying for custom layout #319

Closed
opened 2026-01-05 14:49:41 +01:00 by adam · 1 comment
Owner

Originally created by @1gn0r3d on GitHub (Mar 29, 2024).

Describe the bug
I am trying to apply a simple custom template where the primary column takes up 65% of the screen, however when applying the template, it will just split the columns equally. Furthermore, I cannot resize the width with the default alt+'+' and '-' keys.

To Reproduce
I have tried applying the following custom layouts:
[ { "column": "Secondary", "configuration": { "Horizontal": 1 } }, { "column": "Primary", "WidthPercentage": 65 }, { "column": "Tertiary", "configuration": "Horizontal" } ]
[ { "column": "Primary", "WidthPercentage": 65 }, { "column": "Tertiary", "configuration": "Horizontal" } ]

Expected behavior
The primary window should take up 65% of the screen. However when applying the template, it will just take up 50%

Operating System

OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.22631 N/A Build 22631

komorebic check Output

PS C:\Users\MaximeVanrusselt> komorebic check
No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\MaximeVanrusselt

Looking for configuration files in C:\Users\MaximeVanrusselt

Found komorebi.json; this file can be passed to the start command with the --config flag

Found C:\Users\MaximeVanrusselt\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag
Originally created by @1gn0r3d on GitHub (Mar 29, 2024). **Describe the bug** I am trying to apply a simple custom template where the primary column takes up 65% of the screen, however when applying the template, it will just split the columns equally. Furthermore, I cannot resize the width with the default alt+'+' and '-' keys. **To Reproduce** I have tried applying the following custom layouts: `[ { "column": "Secondary", "configuration": { "Horizontal": 1 } }, { "column": "Primary", "WidthPercentage": 65 }, { "column": "Tertiary", "configuration": "Horizontal" } ]` `[ { "column": "Primary", "WidthPercentage": 65 }, { "column": "Tertiary", "configuration": "Horizontal" } ]` **Expected behavior** The primary window should take up 65% of the screen. However when applying the template, it will just take up 50% **Operating System** ``` OS Name: Microsoft Windows 11 Pro OS Version: 10.0.22631 N/A Build 22631 ``` **`komorebic check` Output** ``` PS C:\Users\MaximeVanrusselt> komorebic check No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\MaximeVanrusselt Looking for configuration files in C:\Users\MaximeVanrusselt Found komorebi.json; this file can be passed to the start command with the --config flag Found C:\Users\MaximeVanrusselt\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag ```
adam added the bug label 2026-01-05 14:49:41 +01:00
adam closed this issue 2026-01-05 14:49:41 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Mar 29, 2024):

The WidthPercentage key comes under configuration, for example, your first layout can be changed like this:

[
  {
    "column": "Secondary",
    "configuration": {
      "Horizontal": 1
    }
  },
  {
    "column": "Primary",
    "configuration": {
      "WidthPercentage": 65
    }
  },
  {
    "column": "Tertiary",
    "configuration": "Horizontal"
  }
]
@LGUG2Z commented on GitHub (Mar 29, 2024): The `WidthPercentage` key comes under `configuration`, for example, your first layout can be changed like this: ```json [ { "column": "Secondary", "configuration": { "Horizontal": 1 } }, { "column": "Primary", "configuration": { "WidthPercentage": 65 } }, { "column": "Tertiary", "configuration": "Horizontal" } ] ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#319