How do I achieve 0 gap between windows? #104

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

Originally created by @anthonyma94 on GitHub (Jul 4, 2022).

Originally assigned to: @LGUG2Z on GitHub.

I'm trying to figure out how to achieve 0 gap between windows. I don't really understand how invisible-borders, container-padding, and workspace-padding works. It seems like invisible-borders behave randomly. I've tried 0 0 0 0, which created a larger gap than positive integers. container-padding and workspace-padding doesn't seem to behave as expected (larger integers should create a larger gap, with 0 padding having no gap). Can someone explain how they're supposed to work?

Originally created by @anthonyma94 on GitHub (Jul 4, 2022). Originally assigned to: @LGUG2Z on GitHub. I'm trying to figure out how to achieve 0 gap between windows. I don't really understand how invisible-borders, container-padding, and workspace-padding works. It seems like invisible-borders behave randomly. I've tried 0 0 0 0, which created a larger gap than positive integers. container-padding and workspace-padding doesn't seem to behave as expected (larger integers should create a larger gap, with 0 padding having no gap). Can someone explain how they're supposed to work?
adam added the documentation label 2026-01-05 14:48:21 +01:00
adam closed this issue 2026-01-05 14:48:21 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Jul 4, 2022):

invisible-borders refers to the invisible borders drawn around each window by the operating system (Windows 10+). This can change between updates, which is why it has been left configurable. Generally though you will very rarely need to ever change this from the default. If you have changed the invisible-borders setting, you should reset it.

container-padding is the space between windows - this should be set to 0 to achieve no gaps between windows.

workspace-padding is the space around the windows (ie. the space from the edge of the screen to the edge of the nearest window) - this should be set to 0 to achieve no gaps between windows and the edge of the screen.

To achieve what it sounds like you're looking for:

komorebic container-padding <MONITOR_IDX> <WORKSPACE_IDX> 0
komorebic workspace padding <MONITOR_IDX> <WORKSPACE_IDX> 0

I'll keep this issue open until I can add an explanation in the FAQ section of the readme.

@LGUG2Z commented on GitHub (Jul 4, 2022): `invisible-borders` refers to the invisible borders drawn around each window by the operating system (Windows 10+). This can change between updates, which is why it has been left configurable. Generally though you will very rarely need to ever change this from the default. If you have changed the `invisible-borders` setting, you should reset it. `container-padding` is the space between windows - this should be set to `0` to achieve no gaps between windows. `workspace-padding` is the space around the windows (ie. the space from the edge of the screen to the edge of the nearest window) - this should be set to `0` to achieve no gaps between windows and the edge of the screen. To achieve what it sounds like you're looking for: ``` komorebic container-padding <MONITOR_IDX> <WORKSPACE_IDX> 0 komorebic workspace padding <MONITOR_IDX> <WORKSPACE_IDX> 0 ``` I'll keep this issue open until I can add an explanation in the FAQ section of the readme.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#104