I occasionally found a way to change aligment - but it requires
editing of awful/widget/common.lua
Dirty but works:)
diff --git a/lib/awful/widget/common.lua.in b/lib/awful/widget/common.lua.in
index 6631cce..943cd6e 100644
--- a/lib/awful/widget/common.lua.in
+++ b/lib/awful/widget/common.lua.in
@@ -33,6 +33,7 @@ function list_update(w, buttons, label, data,
widgets, objects)
w[i + 1]:margin({ left = widgets.textbox.margin.left,
right = widgets.textbox.margin.right })
w[i + 1].bg_resize = widgets.textbox.bg_resize or false
w[i + 1].bg_align = widgets.textbox.bg_align or ""
+ w[i + 1].align = "center"
if type(objects[math.floor(i / 2) + 1]) == "tag" then
tagwidgets[ib] = objects[math.floor(i / 2) + 1]
2010/3/30 Sergey Mironov <[email protected]>:
> 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
>
--
Thanks,
Sergey
--
To unsubscribe, send mail to [email protected].