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 niri/workspaces, niri/window, niri/language #3551

Merged
merged 4 commits into from
Sep 13, 2024
Merged

Conversation

YaLTeR
Copy link
Contributor

@YaLTeR YaLTeR commented Aug 30, 2024

I am working on an event stream IPC for the niri Wayland compositor, which is intended for bar modules and the like. To test out the design, I implemented Waybar modules for workspaces, focused window and language.

This PR is a Draft until I merge the niri PR (in a few days).

I followed the existing modules for Sway and Hyprland in my niri implementation, though with some differences.
Unlike Sway and Hyprland, the niri event stream IPC starts by sending the complete current state, so Waybar doesn't need to query it from other IPC calls. This, however, makes it more convenient to track the state in the IPC class directly, so that modules registering after the initial event burst can still access the current state.

The modules mostly support a similar feature set to the Sway and Hyprland ones, though one notable omission is the window list built into the workspaces module. (All data is there, just didn't get around to it.)

Also, in the workspaces module, configurable sorting order and persistent workspaces are omitted because they don't really make sense for niri's dynamic workspace system.

I documented all supported functionality in the .scd man pages.

@YaLTeR YaLTeR marked this pull request as ready for review September 2, 2024 06:58
@YaLTeR YaLTeR changed the title Draft: Add niri/workspaces, niri/window, niri/language Add niri/workspaces, niri/window, niri/language Sep 2, 2024
@YaLTeR
Copy link
Contributor Author

YaLTeR commented Sep 2, 2024

The niri PR is merged, so this is ready for review.

meson.build Outdated Show resolved Hide resolved
@YaLTeR
Copy link
Contributor Author

YaLTeR commented Sep 13, 2024

Done

@Alexays Alexays merged commit 8a89706 into Alexays:master Sep 13, 2024
6 of 8 checks passed
@Alexays
Copy link
Owner

Alexays commented Sep 13, 2024

LGTM thx for this nice addition :)

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.

2 participants