Change format to
'{r:0.2f}%'

The "2" means 2 decimal places so you can adjust as you see fit if you want
more or less detail.


On Thu, 1 Apr 2021, 13:45 Eduardo Queiroz, <[email protected]> wrote:

> Hi el Paraguayo,
>
> My settings are:
> widget.DF(
>                          foreground='#D8DDE9',
>                          format='{r}%',
>                         partition='/',
>                         visible_on_warn=False,
>                        ),
> Cheers,
> On Wednesday, March 31, 2021 at 10:51:59 PM UTC+11 elParaguayo wrote:
>
>> Ok. I'll see if I can update this later.
>>
>> As for your HD widget, can you share your configuration for that one.
>> Formatting this should hopefully be straightforward.
>>
>> On Wed, 31 Mar 2021, 12:37 Eduardo Queiroz, <[email protected]> wrote:
>>
>>> Sorry mate,
>>>
>>> I have no experience in Python (in programming in general) and also in
>>> how to submit a pull request (even though this would be the easiest part of
>>> it).
>>> Could you do that for me?
>>>
>>> Thanks,
>>>
>>> Eduardo
>>>
>>> PS.: have you noticed the crazy number next to the HD icon?
>>>
>>> On Tuesday, March 30, 2021 at 11:53:21 PM UTC+11 elParaguayo wrote:
>>>
>>>> Seems reasonable enough.
>>>>
>>>> Are you able to make the change and submit a pull request for the devs
>>>> to look at?
>>>>
>>>> On Tue, 30 Mar 2021, 13:48 Eduardo Queiroz, <[email protected]> wrote:
>>>>
>>>>> Yep. But as I saw some widget with padding_x and padding_y settings I
>>>>> thought it would be ok asking to add this to textbox widget
>>>>>
>>>>> On Tuesday, March 30, 2021 at 11:44:43 PM UTC+11 elParaguayo wrote:
>>>>>
>>>>>> Ah, I see. I assume those icons are from some font so they're also a
>>>>>> TextBox widget.
>>>>>>
>>>>>> It wouldn't be too difficult to edit the widget to have a manual
>>>>>> adjustment to the vertical position but does feel a bit "hacky"!
>>>>>>
>>>>>>
>>>>>> On Tue, 30 Mar 2021, 13:34 Eduardo Queiroz, <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> On Tuesday, March 30, 2021 at 11:26:19 PM UTC+11 elParaguayo wrote:
>>>>>>>
>>>>>>>> What's the issue?
>>>>>>>>
>>>>>>>> I think text is centred vertically, aligning it with icons would
>>>>>>>> assume all icons have the same size.
>>>>>>>>
>>>>>>>> Can you post a screenshot?
>>>>>>>>
>>>>>>>> On Tue, 30 Mar 2021, 13:20 Eduardo Queiroz, <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>> Is it possible add this feature to the widget so that icons and
>>>>>>>>> text could be aligned vertically?
>>>>>>>>> Thanks,
>>>>>>>>> Eduardo
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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/8d7c3b51-4504-4ee9-a82e-348f984204cdn%40googlegroups.com
>>>>>>>>> <https://groups.google.com/d/msgid/qtile-dev/8d7c3b51-4504-4ee9-a82e-348f984204cdn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>>> .
>>>>>>>>>
>>>>>>>> --
>>>>>>> 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/9087a079-cee9-4b68-8b68-9ba47f08d5e0n%40googlegroups.com
>>>>>>> <https://groups.google.com/d/msgid/qtile-dev/9087a079-cee9-4b68-8b68-9ba47f08d5e0n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>>
>>>>>> --
>>>>> 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/193f148e-657c-441e-8191-217729b16426n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/qtile-dev/193f148e-657c-441e-8191-217729b16426n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>> 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/5160a81a-58ff-4efa-8f08-0e9aca84fa77n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/qtile-dev/5160a81a-58ff-4efa-8f08-0e9aca84fa77n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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/eded60ae-3d8d-4760-b1ba-b44d6d71f451n%40googlegroups.com
> <https://groups.google.com/d/msgid/qtile-dev/eded60ae-3d8d-4760-b1ba-b44d6d71f451n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CADPQLhCX%3Dzggj8maxUybeJSEFmVyVAHkVSvPWU2sCCvkz4PosQ%40mail.gmail.com.

Reply via email to