qtile: Inconsistent margin sizes in columns layout

Issue description

When in column layout, the outer margins are always what you set them to, in my case 5px. But the part where the margins touch each other ,such as down the center when the first two windows are open, or in between items on the stack is doubled, leading to inconsistent margin sizes around a single window. I have seen this behavior on two different machines on qtile 0.16.1 . If this is the intended behavior, could it be configurable so that margins would ‘overlap’ instead of doubling up at the intersections, leading to a single margin thickness around all windows?

Qtile version

0.16.1

hash 04be6f6

Stack traces

Nothing seems relevant. Happy to provide if needed

Configuration

https://gist.github.com/risingprismtv/bef3e4d451a1775a7a71fd2703766b65

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (10 by maintainers)

Most upvoted comments

There is an “inner” gap around the windows that is created by the Columns layout, but the “outer” gaps around the inside edge of the screen are created using Gap objects. To make the gap between the columns (which is 2x the “inner” gap) equal to the gap between a column and the screen (1x “inner” gap beside the column and 1x “outer” gap beside the screen edge), these need to be the same value. For example, I have this behaviour using this:

layouts = [layout.Columns(margin=6)]
screens = [
    Screen(
        top=mybar,
        bottom=bar.Gap(6),
        left=bar.Gap(6),
        right=bar.Gap(6),
    )
]