Minitray

Description
If you don't like tray widget cluttering your top panel, and you don't use it that often anyway, then minitray is for you. It allows yout to show/hide your tray with a single key combination.

Howto

 * Download minitray.lua


 * Require the module in rc.lua:

local minitray = require("minitray")


 * Put a keybinding for toggling minitray:

-- somewhere in globalkeys awful.key({ modkey,          }, "l", function minitray.toggle end ),


 * Don't forget to remove the default system tray from your panel. You should delete this line:

if s == 1 then right_layout:add(wibox.widget.systray) end

Customization
By default, minitray spawns in upper right corner just under your top panel, has a height of 20 and a width equal to the tray width. You can change some of these values by specifying an argument to minitray.toggle. For example, this will show minitray in the upper corner having bigger size:

minitray.toggle({ x = 0, height = 30 })