3

alltray has an excellent option that gives us great customizability:
--menu; -m: "menu text:command": add entry to popdown menu

just to run test it I am using tho ex.: alltray xev

it is installable on ubuntu 16.04.

using kwin it will fail with ERROR get class hints

using with metacity (my preferred for speed) or compiz gives Alltray: no system tray/notification area found.

what can be done to let it work? preferably on metacity.

as an alternative answer, any equivalent application or script that has an equivalent option to --menu will do it.

this wont work, outdated.

1 Answers1

2

Short answer (TL;DR)

alltray is not maintained anymore, if you are using KDE use kdocker instead.
(it may also work with Gnome)

It's as easy as:

sudo apt-get install kdocker

Details

As you can see from their repository and from this post the alltray tool is not being maintained anymore.

Because of this, even if you try to compile it from source it would be very difficult to get it working, since it is based on old standards and old/obsolete libraries. For example, it is based on old standards for the Vala language and if you try to compile it with recent Vala compilers it even generates syntax errors.

The kdocker tool is still maintained instead, and it is very easy to install it on Ubuntu 16.04 as shown above.

It works almost exactly like alltray, if you want to cancel "docking" just click with the right mouse button instead of left button (Esc will not work).

It surely works with KDE, I didn't test it with Gnome (the fact that its name starts with K means nothing, many applications like Kate or Konsole still work with Gnome).