Then that means that the focus_list is empty. It returning nothing is an
expected output; if you're focused on a screen that doesn't contain any
windows, then there is no current window.

On Mon, Aug 9, 2021, 12:08 Guilherme Freire <[email protected]>
wrote:

> Yes, i think that's it.
> But i still cannot get the current window. `qtile.current_window` is not
> returning anything
>
>
> Em segunda-feira, 9 de agosto de 2021 às 12:22:17 UTC-3,
> [email protected] escreveu:
>
>> Gotcha. You'll want to define your own lazy function to do that then.
>> On Monday, August 9, 2021 at 9:10:23 AM UTC-6 [email protected]
>> wrote:
>>
>>> I'm kinda of implementing a window swallow in my config, but I want the
>>> option to unswallow a window with some keybind
>>>
>>> Em segunda-feira, 9 de agosto de 2021 às 11:51:15 UTC-3,
>>> [email protected] escreveu:
>>>
>>>> Context would be helpful. `qtile.current_window` (or something to that
>>>> effect) works *inside *a lazy function (when passed the `qtile`
>>>> object), but I'm not sure what you'd want to do with a window object
>>>> *outside* of a lazy function.
>>>>
>>>> On Mon, Aug 9, 2021, 07:23 Guilherme Freire <[email protected]>
>>>> wrote:
>>>>
>>>>> I need to get the current focused window object when a keybind is
>>>>> pressed. Is there some lazy.*command* that I can use or something
>>>>> like that? How can I do this?
>>>>>
>>>>> --
>>>>> 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/793f355c-051d-4334-9207-222a6353a6d8n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/qtile-dev/793f355c-051d-4334-9207-222a6353a6d8n%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/a6f19fe3-d4cf-468e-9122-dd0a1a9a3d04n%40googlegroups.com
> <https://groups.google.com/d/msgid/qtile-dev/a6f19fe3-d4cf-468e-9122-dd0a1a9a3d04n%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/CAHErDQi4EdtmQgPm1RJ4jVFcwStKXCRq8FdtQYz8-h8qO6b%3DvA%40mail.gmail.com.

Reply via email to