I would think this is possible without a new widget.

My approach would be:

   1. find the code that lists windows in current group
   2. count the windows
   3. send text to a basic TextLayout widget
   4. add hooks to update text when windows opened or closed

2, 3 and 4 are easy enough. Just looking at #1 now...

On Tuesday, 24 November 2020 at 23:51:04 UTC [email protected] wrote:

> Thank you for the reply Justine, but I'm looking for a widget to do that! 
>
> On Tuesday, November 24, 2020 at 5:40:18 p.m. UTC-5 Justine Smithies wrote:
>
>> I just use the TaskList widget but you could easily make a new widget 
>> that just displays the number of open windows.
>>
>> On Tue, 24 Nov 2020, 21:31 Joe Yabuki, <[email protected]> wrote:
>>
>>> Hello guys
>>> I'm wondering how can there any way to display the number of opened 
>>> window on the bar. I use the stack layout quite a lot and sometimes I open 
>>> more than 2 windows and I need to know if the total number of the opened 
>>> windows!
>>>
>>> Thank you in advance
>>>
>>> -- 
>>> 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/6c923fd5-691d-4f01-8f59-92559d501835n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/qtile-dev/6c923fd5-691d-4f01-8f59-92559d501835n%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/a2a2f123-abe4-484d-8a3b-3d2abaee68a0n%40googlegroups.com.

Reply via email to