Thank you, Guillaume, it worked flawlessly! Sorry for the formatting, will do it right next time. I will open an issue on GitHub, I just want to make screen recording to make it clearer. Thanks again!
On Friday, December 11, 2020 at 8:28:17 PM UTC+1 Guillaume Gelin wrote: > Hi Igor, > > It was quite hard to see what you tried to do without indentation but I > guess this is what you're looking for the urgency: Key([mod], "u", > lazy.next_urgent()) > > For the focus : Key([mod, "shift"], "Tab", lazy.group.focus_back()) > > Please open an issue on GitHub for your third point. > > Cheers > > Le ven. 11 déc. 2020 à 19:36, Igor Paraskeva <[email protected]> a écrit : > >> >> 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> >> . >> > > > -- > Guillaume Gelin > -- 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/7b4176cd-58af-4423-8018-cc2633f3e6b9n%40googlegroups.com.
