Hi, Layouts don't seem to have any remove function. Maybe you can reset it (with the reset function) and the add the widgets that you want. It's not the easier way but the only that I see with available API. Maybe you can open an issue on Github to add a remove function.
Kind Regards, Alexis Le jeu. 2 avr. 2015 à 05:52, [email protected] <[email protected]> a écrit : > No, i want to create and remove them dinamically in runtime. Is it > possible? > > > 01.04.2015 17:30, Mathias Brulatout: > > 1/2. Just comment this block. > But for your actions to take effet, you need to reload awesome with your > new configuration. By default it's Super + Maj + R. > > Mathias > > > 2015-04-01 14:09 GMT+02:00 [email protected] <[email protected]>: > >> For example quotes from default rc.lua: >> >> mytextclock = awful.widget.textclock() >> right_layout:add(mytextclock) >> layout:set_right(right_layout) >> mywibox[s]:set_widget(layout) >> >> >> Two questions: >> >> 1. How to remove widget mytextclock from mywibox? >> >> >> 2. How to remove widget mytextclock at all? >> Is that enough >> mytextclock = nil >> ? >> >> -- >> To unsubscribe, send mail to [email protected]. >> > >
