Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stretching of modules and modules-center toggling #3730

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

TripleTrable
Copy link
Contributor

This Patch allows the stretching of modules-{left,center,right} as well add a "expand" flag to AModule. This allows one module to consume the leftover space.
To allow the left or right modules to fully consume the center, the changes also include a way to remove the center box (center_) altogether.

This is useful for use-cases like: #1561

@TripleTrable
Copy link
Contributor Author

TripleTrable commented Nov 19, 2024

Any Interest in looking at this? The 51 come from touching nearly all man pages.

This Patch allows the stretching of modules-{left,center,right} as well
add a "expand" flag to AModule. This allows one module to consume the
leftover space.
To allow the left or right modules to fully consume the center, the
changes also include a way to remove the center box (center_)
altogether.
@TripleTrable TripleTrable force-pushed the AModuls/expand-fill-no-center branch from 1fa0a8b to 1e481b7 Compare November 19, 2024 23:00
@Alexays
Copy link
Owner

Alexays commented Nov 20, 2024

LGTM, thx!

@Alexays Alexays merged commit b863627 into Alexays:master Nov 20, 2024
9 checks passed
@TripleTrable TripleTrable deleted the AModuls/expand-fill-no-center branch November 20, 2024 09:33
src/bar.cpp Show resolved Hide resolved
src/bar.cpp Show resolved Hide resolved
tmccombs added a commit to tmccombs/Waybar that referenced this pull request Jan 1, 2025
Resolving conflicts with f9acc1f
(Alexays#3730) was a somewhat complicated.

Conflicts:
	include/AModule.hpp
	src/AModule.cpp
	src/bar.cpp
	src/modules/network.cpp
	src/util/backlight_backend.cpp
TripleTrable added a commit to TripleTrable/Waybar that referenced this pull request Jan 13, 2025
Thanks to tmccombs this commit fixes some inconsitencies in Alexays#3730.
These inconsitencies were:
- Fixed the oversight of missing the implementation of expand_center for
  center_ and right_
- Removes a last minut printf debugging statment I missed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants