Does lazy.next_urgent() work?

On Fri, 11 Dec 2020, 18:36 Igor Paraskeva, <[email protected]> wrote:

>
> Nobody?
> On Saturday, November 7, 2020 at 10:20:43 PM UTC+1 Igor Paraskeva wrote:
>
>> Hi, guys! I'd like to ask for help to make this work. I'm very new to
>> Python, so please don't judge me too hard :)
>>
>> 1. I'd like to map cmd_next_urgent to Mod+u. What I'm doing now is
>> Key([mod], "u", lazy.spawn('qtile-cmd -o cmd -f next_urgent')). It works,
>> but I'd like to make it "native" way without using shell. I tried this:
>> def to_urgent(qtile):
>> cg = qtile.currentGroup
>> for group in qtile.groupMap.values():
>> if group == cg:
>> continue
>> if len([w for w in group.windows if w.urgent]) > 0:
>> qtile.currentScreen.setGroup(group)
>> return
>> ...
>> Key([mod], "u", lazy.function(to_urgent))
>> ...
>> It is not working. I also tried this:
>> ...
>> from libqtile.core.manager import Qtile
>> Key(['mod'], "u", cmd_next_urgent())
>> ...
>> and receiving an error.
>>
>> 2. Same thing for toggle focus between last/current window. Now I'm using
>> Key([mod, "shift"], "Tab", lazy.spawn('qtile-cmd -o group -f
>> focus_back')), but I'm pretty sure there is more elegant solution.
>>
>> 3. I'm not sure if it's a bug of Brave/Qtile, but when I spawn several
>> Brave windows in MonadTall layout sometimes focus not follow new spawned
>> windows. With every other app everything works as it should, I only have it
>> with Brave. Sometimes focus breaks on second spawned window, sometimes on
>> fourth, I can't figure out any pattern. Maybe anybody experienced this?
>>
>> Thanks 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/374eac6c-299b-4742-bbfa-ef8dc6ae95d6n%40googlegroups.com
> <https://groups.google.com/d/msgid/qtile-dev/374eac6c-299b-4742-bbfa-ef8dc6ae95d6n%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/CADPQLhDpVPCVCDAv5pbT9L-ha6TNq4o1sufKj-sp6wQwS98NRw%40mail.gmail.com.

Reply via email to