To expand on my previous reply, I think this works because the default text 
alignment for a TextLayout is centred.

See: https://github.com/qtile/qtile/blob/master/libqtile/drawer.py#L45


On Tuesday, 15 September 2020 at 16:06:21 UTC+1 elParaguayo wrote:

> I think the easiest way to do this is to set the text layout width to be 
> the same as the widget width and the text is centred automatically.
>
> On Monday, 14 September 2020 at 20:42:15 UTC+1 [email protected] wrote:
>
>>
>> Hello !
>>
>> I want to use fixed size text widgets, but the text always sticks to the 
>> left. Is there a way to center the text ? (The text changes so I can't set 
>> a fixed padding).
>>
>> Thanks for any help
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/94c9a60d-100c-478c-9698-80702c099a37n%40googlegroups.com.

Reply via email to