Skip to content
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

Planned swaybar tray features #3799

Open
5 tasks
ianyfan opened this issue Feb 28, 2019 · 20 comments
Open
5 tasks

Planned swaybar tray features #3799

ianyfan opened this issue Feb 28, 2019 · 20 comments
Labels
enhancement New feature or incremental improvement swaybar

Comments

@ianyfan
Copy link
Contributor

ianyfan commented Feb 28, 2019

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: Add support for layer shell popups #3871

The following features are either implementation details or extensions for usability:

Currently not being worked on (by me, at least) so contributions would be very welcome :)

This was referenced Feb 28, 2019
@ianyfan ianyfan added the enhancement New feature or incremental improvement label Feb 28, 2019
@artizirk
Copy link

artizirk commented Mar 1, 2019

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

@m-khvoinitsky
Copy link

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

@ianyfan
Copy link
Contributor Author

ianyfan commented Mar 16, 2019

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.

@m-khvoinitsky
Copy link

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.

@emersion
Copy link
Member

However, it is currently blocked by layer shell popups

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

@agraven
Copy link

agraven commented Aug 26, 2019

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

@m-khvoinitsky
Copy link

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.

@emersion
Copy link
Member

PR implementing D-Bus menus: #5161

@nmschulte
Copy link
Contributor

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?

@ianyfan
Copy link
Contributor Author

ianyfan commented Apr 18, 2020

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

@Merith-TK
Copy link

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

@LambLeeg
Copy link

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!

@crocket
Copy link

crocket commented Sep 15, 2020

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

@ianyfan
Copy link
Contributor Author

ianyfan commented Sep 23, 2020

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.

@xi
Copy link
Contributor

xi commented Dec 25, 2020

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

@oniGino
Copy link

oniGino commented Aug 12, 2022

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

@linux40
Copy link

linux40 commented Sep 1, 2022

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

@Hikandy
Copy link

Hikandy commented May 8, 2023

Any work-arounds for this meanwhile?

@oniGino
Copy link

oniGino commented May 8, 2023

Any work-arounds for this meanwhile?

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

@akhiljalagam
Copy link

Any work-arounds for this meanwhile?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or incremental improvement swaybar
Development

No branches or pull requests