kcshot
kcshot copied to clipboard
X11-native systray icon
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:
- Create a window in the systray area using xcb
- Give ownership of it to gtk
- Add an image widget and a menu on right click
I, however, have been unable to make this work, my past attempts:
Alternatives
- Do nothing, preserve the status quo
- 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