kcshot icon indicating copy to clipboard operation
kcshot copied to clipboard

X11-native systray icon

Open RealKC opened this issue 2 years ago • 0 comments

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 avatar Sep 09 '22 16:09 RealKC