I think allowing users to change units is a good idea and it would be great
if you could implement that in the next release. I was thinking that I
might need to edit that widgets code since I saw that it already gets MB by
dividing  bytes(I guess?) by 1024 twice. Thanks for your help!

On Tue, 22 Dec 2020 at 08:19 elParaguayo <[email protected]> wrote:

> The code is (currently) hard wired to display the amounts in MB.
>
> I was hoping that there'd be a way to use python's string formatting to do
> this but I'm not sure there is.
>
> I'm happy to update the widget to allow users to select units but that
> would only help you once the change is merged and included in the next
> release.
>
> If you want to have a go yourself, you need to edit the code here:
> https://github.com/qtile/qtile/blob/v0.16.1/libqtile/widget/memory.py#L66
> - If you divide by 1024 again you'll get GB.
>
> On Monday, 21 December 2020 at 20:53:05 UTC David Budzynski wrote:
>
>> Hi everyone,
>>
>> Is it possible to configure the memory widget to display used and
>> available memory in GB instead of MB? I often use up to 60GB of ram so it
>> would be great if I could have it be displayed that way.
>>
>> Thanks in advance,
>> David
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "qtile-dev" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/qtile-dev/aayksMnGI_k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/qtile-dev/1bc76fec-931d-4d58-9691-3c42c6c67df7n%40googlegroups.com
> <https://groups.google.com/d/msgid/qtile-dev/1bc76fec-931d-4d58-9691-3c42c6c67df7n%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/CAC2Cj8TU6%2B8VxgcHnELhPNsOy0ARzLbj9ncmdkJZJPkiS3Qk1Q%40mail.gmail.com.

Reply via email to