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

river/tags: add module #745

Merged
merged 1 commit into from
Jun 14, 2020
Merged

river/tags: add module #745

merged 1 commit into from
Jun 14, 2020

Conversation

ifreund
Copy link
Contributor

@ifreund ifreund commented Jun 12, 2020

This commit adds a new module displaying the tags of river which serve a similar purpose to sway's workspaces. This works using a custom river-status protocol that allows waybar to receive events when the tag state of an output changes.

There are also other things that could be added to waybar for better integration with river such as a module displaying the title of the currently focused view, or a module displaying the current mode (like there is for sway already). I decided to implement the tags module first as it is the most important and I'm not totally sure what this project's stance is on supporting specific compositors other than sway.

Comment on lines +173 to +176
if true
add_project_arguments('-DHAVE_RIVER', language: 'cpp')
src_files += 'src/modules/river/tags.cpp'
endif
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this if true and the existence of the HAVE_RIVER define are pure cargo-culting, I just copied what is done for the wlr/taskbar module. The river/tags module does not introduce any external dependencies, it only requires wayland-scanner and the protocol xml which I have included in this PR.

@ifreund
Copy link
Contributor Author

ifreund commented Jun 12, 2020

Wouldn't be complete without a screenshot showing it off.
image
In this case I have open windows on tags 1, 8 and 9 while focusing tags 1, 2, and 3.

@Alexays
Copy link
Owner

Alexays commented Jun 14, 2020

Thanks @ifreund, I'd like to see other wlroots based compositors modules 😃
Code LGTM, can you update the github wiki?

@Alexays Alexays merged commit b23ba00 into Alexays:master Jun 14, 2020
@ifreund
Copy link
Contributor Author

ifreund commented Jun 14, 2020

Sure! I should have time to add this to the wiki later today.

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.

None yet

2 participants