-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
i3bar compatability #343
Comments
I think font support is missing as well. |
Thanks, added that. |
I don't know if this belong here, but the bar doesn't seem to get fresh bar configuration if you edit the config and reload it from within sway. |
Probably worth having a second issue for that. |
Looking forward to the day when I can use i3blocks seamlessly with swaybar... Keep up the great work! |
I guess sway should also support a custom command for the swaybar. i3 has |
Good call. |
Rather important feature missing from the list: click events |
What about trayicon support? I might be difficult to do, but it is a quite major feature. |
I plan on addressing that at some point, but no Wayland compositors currently support tray icons, so we'd have to make up our own protocol extension and try to land it in the various GUI toolkits, as well as in xwayland. |
Regarding trayicons, I suggest you use the StatusNotifier / AppIndicator protocol which is promoted heavily as the new way to display status icons. I guess that is what wayland applications will use. |
My intention is to support both. |
Can you also add smart_hide mode when swaybar is visible only if there is any window on workspace? |
Is that a request for a sway-exclusive feature, rather than one for a feature already in i3? If so, please create a new Github issue for it. |
You linked click events to issue #222, but I can't find click events mentioned anywhere there, and click events currently do not seem to work, at least on my i3blocks setup they do not. Am I doing something wrong or is this functionality just not implemented yet? |
It's not implemented yet. The link from #222 has nothing to do with mouse events. |
#450 is what really needs to get done before we can think about mouse events on swaybar. |
Is anyone working on getting swaybar to handle mouse events? If not I might take a stab at it. |
Not yet afaik. It has to be made into a shell surface. A good start would be working on swaybg as a shell surface. |
Not sure exactly what "working on swaybg as a shell surface" means. I haven't looked at swaybg yet and I'm still trying to understand the difference between a surface and a shell surface. I'll take a look at swaybg and and do some more research on surface vs shell surface and maybe it will become clear. Thanks. |
A surface is any rectangular area of pixels that the compositor knows about. Shell surfaces are surfaces that act like windows. Presently swaybg and swaybar are both surfaces but not shell surfaces. To interact with the mouse they need to be shell surfaces, but currently sway assumes that all shell surfaces are windows and will attempt to tile them and such. |
Thanks for the explanation. Could you please point me to the code that makes the assumption that shell surfaces are windows and where (non shell) surfaces are treated differently. |
Thanks. I'll try and play around with this over the next couple of days to try to understand Sway and wlc a little better. |
How is Sway "notified" that Swaybar is launced? handle_view_created() seems to get called whenever a window, or I guess a shell surface, like a terminal is created but it does not get called when Swaybar is launched by Sway. I'm trying to find the code that ensures that Swaybar is rendered in the appropriate place. |
Is this how it works? set_panel() gets called. It calls find_or_create_panel_config() which does list_add(desktop_shell.panels, config). desktop_shell.panels is then used in handle_output_pre_render() which calls wlc_surface_render() to render the bar. And is the desktop-shell.xml a Sway specific extension? |
You have to provide all three colors if I recall correctly. The relevant error should have been logged. |
Well, there is no error in log, actually. And the strange thing with colors appearing even with the default configuration (in which the Log from another example:
Background also cyan here. |
I think there may be an error in parse_color. It should use |
Send patch? |
I can do that, but I'll have to test it first. |
Of course. Thanks! |
Well, I can't reproduce it, that may depend on the specific strtol implementation. I'll send the patch anyways. |
I can try to test this. If this is the only line that require changes... |
Yeap, this worked for me:
And the colors are correct now. Thanks! |
Shouldn't tray icon support be in this list? |
I suppose. |
Should click events be part of this list? Eg. https://i3wm.org/docs/i3bar-protocol.html - when configuration specifies "click_events": true. I saw mouse events being part of this list but I assume those mean just in general (and perhaps clicking on workspace labels). |
Thanks @johnae, added those to the list. |
What is the progress about the tray icon bar? |
None. Work on it yourself if you want. |
I don't know very much about wayland or tray icons, but if someone points me in the right direction I'd be willing work on implementing the tray icon bar. |
Some direction on tray icons is given in the bounties issue. |
Is this issue's tray icons item closed with the merging of #1234? |
@kellpossible XEmbed is still not implemented. |
Really need mode options. |
Will it support vertical bar/panel? |
That's unrelated to i3 compatability, but perhaps. |
Did i3bar toss in trailing garbage during click events? Currently swaybar adds a trailing comma which means it emits a malformed JSON value and breaks the usability for example of i3status-rust. I would love to provide a patch for this but I'm not sure which repository to submit it to. |
Yeah that looks wrong. This is the repository to send patches to. |
i3bar's features are fully supported (except tray icons, which are being tracked separately). |
These features need to be implemented in swaybar:
The text was updated successfully, but these errors were encountered: