sway
sway copied to clipboard
Planned swaybar tray features
I've noticed that there are still a number of issues that are getting opened regarding missing tray features despite the existence of this post, so I thought I would elaborate a bit more on these points.
Most of the issues fall under these two categories:
- [ ] Some X icons don't show - these programs use the XEmbed specification, which currently isn't supported. Please encourage them to use Status Notifier Items instead. The other way for this to work would be to implement a proxy, like plasma. (in fact, it should be possible to use plasma's proxy to get these icons to work, but I couldn't get it to install, and it would be nice to have one included)
- [ ] Click actions don't work - these programs use the Canonical DBus menu specification, which needs to be implemented. ~~However, it is currently blocked by layer shell popups: https://github.com/swaywm/sway/issues/3871~~
The following features are either implementation details or extensions for usability:
- [ ] Caching icons correctly: https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#implementation_notes (ref https://github.com/swaywm/sway/issues/3789)
- [ ] Locales when parsing index.theme file
- [ ] Way to re-arrange icons
Currently not being worked on (by me, at least) so contributions would be very welcome :)
KDE guys have a XEmbed proxy daemon https://github.com/KDE/plasma-workspace/tree/master/xembed-sni-proxy
Consider adding: SVG icons support. Currently, for example, Quassel shows sad face instead of icon because its icon is SVG.
Hmm, I did allow it to load SVGs if it was built with gdk-pixbuf2 support, but I never actually tested it, so it might have gone wrong somewhere.
I'm not 100% sure that the reason is SVG but that's the only difference that I've noticed between Quassel and working icons. And there is no any hint in logs.
However, it is currently blocked by layer shell popups
This can now be implemented, as layer-shell popups are supported by Sway.
Should an issue be created for the implementing the DBus menu specification?
Consider adding: SVG icons support. Currently, for example, Quassel shows sad face instead of icon because its icon is SVG.
It works since 1.4.
PR implementing D-Bus menus: https://github.com/swaywm/sway/pull/5161
I'm not sure what is spec'd, but is it possible to have tray icon tooltips, that helps me identify the tray item, some sort of name or title?
Hm, I guess you can do it now that popups have been implemented, and there is a tooltip property in the SNI spec, but it's not something that I'm planning on doing, so someone else will have to implement it
how do i enable this? running archlinux on sway 1.4. but the only tray icon i have ever seen on my system through swaybar was albert, which didnt work due to the whole isolation that wayland does
Recently I began to use Sway instead of i3 and I only have one bug, my system tray has no menu bar with actions, for example, Steam or Telegram also i3 by default has a WiFi settings icon that I have never seen in SwayWM. Good luck with this project because Wayland is the future. Anyway, Sway has more features and I absolutely like it!
Both xembed-sni-proxy and snixembed failed to work on sway-1.5 on gentoo linux.
Can we please stop reporting random bugs here please? If xembed proxy doesn't work, and it's identifiably a problem with sway, then please open a new issue. The tray was written as a standards-compliant implementation, and not to specifically work with an xembed proxy, so the places where they work are more of a happy accident. There are also no current plans to roll our own proxy either. Please encourage xembed apps to use SNIs, thanks.
For anyone searching for a short term solution for menues: It is not that hard to show dbus menues in dmenu or something like that. Proof of concept: https://gist.github.com/xi/b88af997b485191fa0beb5d6612ead29
I can understand not support Xembed, but for SNI is there a ticket somewhere tracking dbusmenu work?
The Canonical DBus menus are blocked not only for the click actions. A script calling Gtk.Menu.popup
doesn't work too.
Any work-arounds for this meanwhile?
Any work-arounds for this meanwhile?
I switched to waybar, it is a lot more feature rich and has full tray support
Any work-arounds for this meanwhile?
https://gist.github.com/xi/b88af997b485191fa0beb5d6612ead29