sway icon indicating copy to clipboard operation
sway copied to clipboard

Planned swaybar tray features

Open ianyfan opened this issue 5 years ago • 17 comments

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 :)

ianyfan avatar Feb 28 '19 19:02 ianyfan

KDE guys have a XEmbed proxy daemon https://github.com/KDE/plasma-workspace/tree/master/xembed-sni-proxy

artizirk avatar Mar 01 '19 11:03 artizirk

Consider adding: SVG icons support. Currently, for example, Quassel shows sad face instead of icon because its icon is SVG.

m-khvoinitsky avatar Mar 16 '19 09:03 m-khvoinitsky

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.

ianyfan avatar Mar 16 '19 10:03 ianyfan

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.

m-khvoinitsky avatar Mar 16 '19 13:03 m-khvoinitsky

However, it is currently blocked by layer shell popups

This can now be implemented, as layer-shell popups are supported by Sway.

emersion avatar Aug 16 '19 18:08 emersion

Should an issue be created for the implementing the DBus menu specification?

agraven avatar Aug 26 '19 15:08 agraven

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.

m-khvoinitsky avatar Jan 27 '20 14:01 m-khvoinitsky

PR implementing D-Bus menus: https://github.com/swaywm/sway/pull/5161

emersion avatar Mar 30 '20 16:03 emersion

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?

nmschulte avatar Apr 17 '20 18:04 nmschulte

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

ianyfan avatar Apr 18 '20 17:04 ianyfan

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

Merith-TK avatar Apr 21 '20 03:04 Merith-TK

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!

LambLeeg avatar Jun 21 '20 14:06 LambLeeg

Both xembed-sni-proxy and snixembed failed to work on sway-1.5 on gentoo linux.

crocket avatar Sep 15 '20 02:09 crocket

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.

ianyfan avatar Sep 23 '20 09:09 ianyfan

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

xi avatar Dec 25 '20 10:12 xi

I can understand not support Xembed, but for SNI is there a ticket somewhere tracking dbusmenu work?

oniGino avatar Aug 12 '22 03:08 oniGino

The Canonical DBus menus are blocked not only for the click actions. A script calling Gtk.Menu.popup doesn't work too.

linux40 avatar Sep 01 '22 13:09 linux40

Any work-arounds for this meanwhile?

Hikandy avatar May 08 '23 18:05 Hikandy

Any work-arounds for this meanwhile?

I switched to waybar, it is a lot more feature rich and has full tray support

oniGino avatar May 08 '23 18:05 oniGino

Any work-arounds for this meanwhile?

https://gist.github.com/xi/b88af997b485191fa0beb5d6612ead29

akhiljalagam avatar Nov 03 '23 09:11 akhiljalagam