On 06.10.2011 00:26, David Palacio wrote:
> On Tue, Oct 04, 2011 at 09:52:20PM +0200, Uli Schlachter wrote:
>> Oh, taglist. I guess that should be solved via a taglist filter then. E.g.
>> instead of filter.noempty, it would need an own function which skips clients
>> with skip_taskbar... Or so.
>>
>
> I do not understand. Do you mean an alternative to the second patch? If so,
> is it something to modify on the user side (rc.lua) or the Awesome side
> (widgets)?
In awesome 3.4 it's called label, sorry.
So the default config does this:
mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.label.all,
mytaglist.buttons)
Since you are only seeing tags with clients on them on the taglist, you are
probably using label.noempty() instead.
What I propose is:
mytaglist[s] = awful.widget.taglist(s, function(t, args)
local clients = t:clients()
local empty = true
for k, c in pairs(clients) do
if c.type ~= "desktop" then
empty = false
end
end
if not empty then
return awful.widget.taglist.label.noempty(t, args)
else
return nil
end
end, mytaglist.buttons)
--
The Angels have the phone box!
--
To unsubscribe, send mail to [email protected].