-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Sway support #72
Sway support #72
Conversation
I believe the i3 IPC should also work actually as they are the same API. |
Yes it should work with i3ipc aswell. But the maintainer |
I've tested this on on Arch Linux and found that it worked. In particular:
No problems found. Thanks for the work @JayceFayne ! |
@JayceFayne With some more testing, I did find some issues. Once after selecting a letter, I got this in the console:
I tried what I thought was the same steps again and could not reproduce this. I ran into a second issue, which may not be specific to Wayland support so it could be split off into a separate issue: My overlay labeled a window as Although Vimium and Qutebrowser commonly use multiple letter combinations to select a link, I realized that the hint wasn't trying tell me that I needed to type "df" to select the window, it was trying to tell me me to type "d" to select the parent container OR "f" to select the child window. That could be clearer! Putting the letters in sequence certainly makes them look like they are to be typed in sequence. It would be clearer if in cases like this that the child containers letter was vertically offset to give a visual clue that it's not the second character in a sequence. Ex: drop the child container's letter 50% of the letter height. |
I found another problem, which I'm not sure is specific to Wayland or not. To reproduce:
At this point, wmfocus seems to be "stuck". It has lost keyboard focus. If you type the letters in the hints now, the keys will go to the focused app, not to I think if |
I'm definitely interested in merging this in case you can ensure that things still draw ok when using sway. Are you still pursuing this? |
As the tester, I would still support merging this as-is even though I found some issues. I'm already using it daily. Here's some follow-ups on the three points of feedback I reported:
In short, I recommend merging this but opening some follow-up issues for specific items. |
I still support merging this, but do run into the "stuck" state once every day or so. It's a minor annoyance fixed by killing |
@svenstaro Thanks for the new release. Despite some edge cases patch, this PR is still better than no Sway support, so I recommend merging it and it can continue to refined later. Maybe I can find some time to resolve this conflict, since I'd like to use this in combination with highlighting the current window. |
Alright I'd be ok with that if you resolve the conflicts. |
|
||
[dependencies] | ||
cairo-sys-rs = "0.10" | ||
css-color-parser = "0.1" | ||
font-loader = "0.11" | ||
i3ipc = { version = "0.10", optional = true } | ||
swayipc = { git = "https://github.com/JayceFayne/swayipc-rs", optional = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reproducible builds, it would be better if a specific version of swayipc
was depended on.
For example, it looks like swayipc
is about to have a 2.0 release. If that contains breaking changes, it will break this build.
This should be closed in favor of #122, which is a rebased version of this PR. |
Fixes #53
@markstos could you verify that you can focus wayland applications with these changes? Seems to work on my machine 😄