Skip to content

Conversation

@WShad
Copy link

@WShad WShad commented Jul 19, 2025

Added keyboard layout manager to wayfire-shell protocol extension.
Wayfire shell's panel now able to display current keyboard layout and request to set it.
Any suggestions?)

Wayfire shell's corresponding PR: WayfireWM/wf-shell#301

@WShad WShad marked this pull request as ready for review July 19, 2025 21:32
@ammen99
Copy link
Member

ammen99 commented Jul 19, 2025

Hey, have you considered using the already existing IPC methods for this in wf-shell? This way we don't have to provide duplicated functionality.

@WShad
Copy link
Author

WShad commented Jul 19, 2025

Thought about it, but IPC's methods tightly coupled with IPC-rules plugin and JSON.
Should i extract this methods as utility?
Or did you mean to use IPC instead of wf-shell protocol? If so: using IPC and wf-shell protocol at same time - is a little bit weird.

@ammen99
Copy link
Member

ammen99 commented Jul 20, 2025

Or did you mean to use IPC instead of wf-shell protocol? If so: using IPC and wf-shell protocol at same time - is a little bit weird.

That was what I was thinking :) I get your point, yet we use the wayfire-shell protocol mostly for historical reasons - it is from before the time wayfire had IPC. However at this point Wayfire's IPC is way easier to use (at least IMO) and it has many more features that might turn out useful for future wf-shell widgets and functionalities.

For example if wf-shell had support for Wayfire's IPC, we could also add many more actions to right-click of window-list. Or show the current workspace. Things like that. It doesn't have to happen in the same PR of course :) But these are just examples where the IPC already has everything we need. So I expect it would be a good move to start adding IPC to wf-shell instead of extending the protocol with functionality we have already implemented.

@WShad
Copy link
Author

WShad commented Jul 20, 2025

Wayfire's IPC is way easier to use (at least IMO) and it has many more features that might turn out useful for future wf-shell widgets and functionalities.

Agree.

So I expect it would be a good move to start adding IPC to wf-shell instead of extending the protocol with functionality we have already implemented.

Let's go then!))

@ammen99
Copy link
Member

ammen99 commented Jul 20, 2025

If we're clear on that, I suppose this PR should be closed, and only the wf-shell PR needs to be updated to use IPC.

@ammen99 ammen99 closed this Jul 20, 2025
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