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

X11-native systray icon #19

Open
RealKC opened this issue Sep 9, 2022 · 0 comments
Open

X11-native systray icon #19

RealKC opened this issue Sep 9, 2022 · 0 comments
Labels
enhancement New feature or request hard For bugs/feature suggestions that are hard to implement help wanted Extra attention is needed

Comments

@RealKC
Copy link
Owner

RealKC commented Sep 9, 2022

Context

Currently kcshot uses ksni exclusively to create a systray icon, this only works on systems that have a KDE/freedesktop Status Notifier Item host, which on WMs, means snixembed mostly (at least it does on awesomewm, which is what I use), it'd be nice if this dependency could be dropped.

XEmbed-based solution

This solution would make use of the old (and I imagine deprecated) systray specification, the high level overview of what needs to be done is:

  1. Create a window in the systray area using xcb
  2. Give ownership of it to gtk
  3. Add an image widget and a menu on right click

I, however, have been unable to make this work, my past attempts:

Alternatives

  1. Do nothing, preserve the status quo
  2. Make a special systray binary that runs in its own process and uses gtk3+libappindicator. It'd work, but I'm not sure I like this option
@RealKC RealKC added enhancement New feature or request help wanted Extra attention is needed hard For bugs/feature suggestions that are hard to implement labels Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hard For bugs/feature suggestions that are hard to implement help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant