Skip to content

Option to turn off struts #2769

@patrick96

Description

@patrick96

Discussed in #2768

Originally posted by patrick96 July 16, 2022
Polybar's struts can cover entire monitors if polybar is placed on a monitor that is in the middle of the X root screen. See also previous issues with tint2: https://gitlab.gnome.org/GNOME/mutter/-/issues/452

There was also a report for this on reddit

Ideally, WMs would compensate for that and only apply the parts of the struts which do not cover entire screens. However, many don't.

On the polybar side, the only conforming solution seems to be to just turn off struts.

For this, we should give the user an option in the bar section to enable/disable struts (enabled by default).
If struts are disabled, global/wm.margin-{top,bottom} being set, should produce a warning, because they are ignored.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions