swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.28k stars 1.09k forks source link

Planned swaybar tray features #3799

Open ianyfan opened 5 years ago

ianyfan commented 5 years ago

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:

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

artizirk commented 5 years ago

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

m-khvoinitsky commented 5 years ago

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

ianyfan commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

However, it is currently blocked by layer shell popups

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

agraven commented 4 years ago

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

m-khvoinitsky commented 4 years ago

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 commented 4 years ago

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

nmschulte commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

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

ianyfan commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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

linux40 commented 1 year ago

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

Hikandy commented 1 year ago

Any work-arounds for this meanwhile?

oniGino commented 1 year ago

Any work-arounds for this meanwhile?

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

akhiljalagam commented 9 months ago

Any work-arounds for this meanwhile?

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