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/89e968b8-ebaa-46a7-89c7-f797177b0d9an%40googlegroups.com.

Reply via email to