LemonBoy / bar

A featherweight, lemon-scented, bar based on xcb
MIT License
1.62k stars 194 forks source link

Handle resize events [Feature request #196] #197

Open cpixl opened 7 years ago

cpixl commented 7 years ago

Implements resize events handling as requested in #196.

cpixl commented 7 years ago

Indeed, this solution would make more sense if bar geometries were not dinamically set by default.

Particularly, it feels a bit hackish as some agreed in https://github.com/LemonBoy/bar/issues/163, maybe a sane approach would be to split the bar in two scripts, keeping only the manual geometry logic set by -g in lemonbar, and moving the Randr/Xinerama magic into a helper script (lemonbar-multihead?) that parses the {S*} blocks, creates a bar for each monitor and sends the relevant part of the input to each one. Then https://github.com/LemonBoy/bar/pull/171 would make sense again too.

Anyway, should this PR be closed? I don't feel that it makes sense too, at the current state of the project.

VentGrey commented 2 years ago

Any updates on this?