-
Notifications
You must be signed in to change notification settings - Fork 40
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
[Request] Wayland/Wlroots support? #26
Comments
Hi @HolyStephano, What exactly would have to be done for making it run on wayland? GTK3 seems to be supported by wayland. Sadly, I am not yet familiar with writing wayland applications. |
I personally don't, but my friend has experience (he's the developer of Wofi) with wlroots, I'm sure he could help you out. He doesn't use github, is there any IRC channels or something to reach you in regularly? |
[email protected] would be best, thx |
Awesome! he should be emailing you soon, make sure to check your spam folder if it runs through gmail at all. |
I'm also on sway, and it basically works, the notifications are just not positionable. they are right in the center of the screen. started from shell, there is just this message: and also I can't get rid of the notifications reliable by hand (they disapear after some time and some notifications I can dismiss by clicking on them, but not all notifications react like that) |
You will need to use gtk-layer-shell to have positionable notifications on sway/wlroots,. |
Hey @HolyStephano, in #99 someone uses the DNC on Sway, does it work like that for you, too? Then we could document the process and close this issue |
The way they're using it is by setting GDK_BACKEND=x11 which forces it to use xwayland. While this would work, it isn't "correct" for wlroots compositors, and just tends to either look bad, break, or not function at all. Actual wlroots support would be great. There's a gtk-layer-shell project that you could look into, or the actual wlroots protocol itself |
Sadly I lack in capacity to do this, currently. Also I have little to no experience with wayland, so I won't implement this for now. But if someone gets it to work and opens a working PR, I will merge it. |
Quick note on this: If you're planning to migrate to gtk4 (#136), you're effectively giving up on this (and vice versa). Gtk4 doesn't do layer-shell at all, not even with the gtk-layer-shell "hack", so,.... good luck ^^' |
I thought, GTK4 was design with wayland in mind? Anyways, I doubt, there will be a merge of #136 soon as GTK4 has no way to move windows, which is absolutely something we need. Actually, the GTK4 reasoning behind this is, a) moving windows should be done by the window manager, b) they can't move windows across platforms, because it's not possible in wayland (like, wtf). I noticed that after I was nearly done with the transition. There probably are ways to get arround it, but it is not clear if the benefits justify the effort. |
Doing window movement in X manually is mostly trivial (i'm working on something very simmilar, and am in the process of migrating to gtk4 currently), although still anoying. you could position windows on wayland before (gtk-layer-shell was the thing to use) but gtk4 removed that possibility, pretty much without a chance of bringing it back. |
I assume, you are talking about EWW? How did you solve the issue? No wayland support? Could you point me at where the code for moving windows on X is in your project? I'd add a reference to #136 in case I come arround and finish the migration. |
Yea, talking about eww. The relevant code I wrote to replace the removed GTK calls is pretty much all in https://github.com/elkowar/eww/blob/gtk4/src/display_backend/x11.rs, being used in https://github.com/elkowar/eww/blob/gtk4/src/app.rs |
wmww/gtk-layer-shell#37 Looks like layer shell support for gtk4 is in progress |
Wayland support would defiantly be a nice feature since there isn't any good notification managers on wayland with a notifications overview unless you want to make one from the ground up which doesn't sound fun. |
This comment was marked as off-topic.
This comment was marked as off-topic.
A first version of wayland support now exists in #242. Feel free to test it |
This comment was marked as off-topic.
This comment was marked as off-topic.
https://github.com/wmww/gtk4-layer-shell gtk4 layer-shell support has been implemented |
@wineee Yes, I saw that, too. Now we need the Haskell bindings for GTK4 Layer Shell and also a solution for moving windows with GTK 4 on X Server as I don't want to brake compatibility. |
Would love to see support for wlroots! :) |
I love the look of this notification daemon, and notice it has GTK3 in the dependencies. However, I'm on sway full time right now, and there's no good way for this to work on sway without implementing a layer-shell surface with wlroots.
The text was updated successfully, but these errors were encountered: