On 01.01.2013 00:20, Sean Goodwin wrote:
> Thanks for that, although it seems that once the I set the container's
> widget to systray, setting it to nil again does not remove the systray from
> my wibox. Any ideas? Do I have to have the wibox redraw itself or something?
Argh. Stupid bugs. The C API has currently no way to hide the systray and of
course no one noticed before the release.
Could someone open a bug about this? Just linking to this ML thread should be
enough. So far, I have no idea how this could be fixed sanely.
In the mean time, some workaround:
local systray = wibox.widget.systray()
local stupid_bug = drawin({})
local container = wibox.layout.margin(systray)
(Use "container" instead of the actual systray in your wibox)
To hide the systray (actually "to move the systray into the drawin called
stupid_bug which is not visible and making sure it does not get moved back"):
awesome.systray(stupid_bug, 0, 0, 10, true, "#000000")
container:set_widget(nil)
To make the systray visible:
container:set_widget(systray)
Uli
P.S.: Sorry, I suck. :-(
--
If you have to type the letters "A-E-S" into your source code, you're doing it
wrong.
--
To unsubscribe, send mail to [email protected].