Here is a trick to toggle system tray visibility in Awesome using keyboard shortcut. The reason to do that is pretty simple - it looks ugly in some themes. In my case I don’t like two things about it:
I didn’t manage to make it transparent which is quite important since I am using transparent tasklist and widgets. I tried
wibox.widget.systray.opacityproperty which doesn’t work as well as setting an alpha channel for
Colors of the apps are very different from theme colors which makes systray look flashy and disturbing:
On the other hand not showing it at all will make interaction with some apps pretty difficult. So having a keyboard shortcut which toggles its visibility sounds like a good solution for above mentioned problems.
To do it create a systray widget inside
Then add it to the the wibox: replace default
Almost done, the only thing left is a shortcut, I use