I tried to write something like

    mytasklist[s] = awful.widget.tasklist(function(c)
        local text,bg,st,icon = awful.widget.tasklist.label.currenttags(c, s)
        if text ~= nil then
            text = "<center>"..text.."</center>"
        end
        return text,bg,st,icon
    end, mytasklist.buttons)

But code is not working: pango supports no "<center>" tag or
another alignment.
I think, that awesome.widget support is required to solve
the problem.

But idea works if you replace <center> with, say, <u>.

2010/3/30 Nick Atzert <[email protected]>:
> is there a way to center align the text in the tasklist?
>
> its currently initialized without any application icons.
>
> heres the code:
>
> mytasklist[s] = awful.widget.tasklist.new(
> function(c)
>     local text, bg, status_image, icon =
> awful.widget.tasklist.label.currenttags(c, s)
>     return text, bg, status_image, nil
> end,
> mytasklist.buttons)
>
>
> thanks
>
>
> --
> To unsubscribe, send mail to [email protected].
>



-- 
Thanks,
Sergey

--
To unsubscribe, send mail to [email protected].

Reply via email to