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

Tray icon/menu only works in X #48

Open
dshoreman opened this issue Mar 17, 2019 · 1 comment
Open

Tray icon/menu only works in X #48

dshoreman opened this issue Mar 17, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@dshoreman
Copy link
Owner

dshoreman commented Mar 17, 2019

Tray menu works great in i3, less so on Sway. That is, nothing shows up at all.

Menus aren't supported just yet but theoretically tray icons by themselves should work.

Possible Causes

  • Yad may or may not use KDE's SNI interface which Sway implements
  • I haven't configured my Sway correctly:
    image
    image

Worth Trying

@dshoreman dshoreman added the bug Something isn't working label Mar 17, 2019
@dshoreman
Copy link
Owner Author

dshoreman commented Mar 29, 2019

Update: Done some testing, seems both possible causes were true.

Built Sway with tray enabled1 and installed both konversation and qt5-wayland. Ran QT_QPA_PLATFORM=wayland-egl konversation to force it to use the Wayland renderer2. Enabled tray icon in settings, and the icon shows up.

Yad on the other hand still did nothing, and doesn't even register any errors in the Swaybar debug output, so clearly it's not using the SNI3 protocol. Waybar also only worked with Konversation, not Nextshot.

Potential Options

  • Find some other app like Yad that supports custom tray menus
  • Get dirty with Yad and rewrite it for SNI
  • Implement the SNI interface in Bash (if that's even possible)
  • Add a separate nextshot-tray.foo where foo is whatever language makes SNI easiest (but ideally Nextshot should be self-contained as a single script)
  • Try XEmbed SNI Proxy... maybe, just maybe, it could work no dice :(

1 May not have been required, seems to be set to auto in the meson_options.txt file
2 Running without this option resulted in blank UI
3 Status Notifier Item

@dshoreman dshoreman added the help wanted Extra attention is needed label Mar 29, 2019
@dshoreman dshoreman removed the help wanted Extra attention is needed label Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant