On Wed, Oct 07, 2009 at 08:40:23AM -0300, Renato Botelho wrote: > [...] > 2. I had this block of code on my 3.3 rc.lua: > > -- > -- Don't draw borders on tiled clients > local c = awful.client.focus.history.get(screen, 0) > local visible_clients = awful.client.visible(screen) > if #visible_clients == 1 then > c.border_color = beautiful.border_normal > else > c.border_color = beautiful.border_focus > end > > With this, when I have just 1 window on a tag, it doesn't draw border > on this window, this block was on awful.hooks.arrange.register() > > I couldn't find how can I do this on new conf. > [...]
I had a similar issue for my layout textbox. I use the following code
now which seems to work fine:
function layout_update(t)
lb_layout[t.screen].text =
getlayouticon(awful.layout.getname(awful.layout.get(t.screen)))
end
for s = 1, screen.count() do
awful.tag.attached_add_signal(s, "property::layout",
layout_update)
awful.tag.attached_add_signal(s, "property::selected",
layout_update)
end
--
GCS/IT/M d- s+:- a-- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o--
K- w--- ?O M-- ?V PS++ PE- Y++ PGP+++ t+ 5 X+ R tv b+++ DI+++
D+++ G+ e h! r y+
Gregor Best
pgpH40PZeXA4N.pgp
Description: PGP signature
