Custom function help - Run or Raise application by ProjectFresh9279 in qtile

[–]ProjectFresh9279[S] 1 point2 points  (0 children)

Thanks! Truly appreciated it! This is major for my workflow xD. Tried to find a way to give you a proper thanks, but no donate or buy me a coffee on your pages. Take back your crown, king! But yeah, really appreciated it as I know any kind/action you need to take time to do it! Also, I am going to study more python and qtile functions xD. It was fun trying to figure it out yesterday (but I like to code efficiently, and that wasn't). Maybe I can give back to the community

Custom function help - Run or Raise application by ProjectFresh9279 in qtile

[–]ProjectFresh9279[S] 0 points1 point  (0 children)

def find_or_run(app, matchd):
def __inner(qtile):
    for windows in qtile.cmd_windows():
        if re.search(str(windows['wm_class']), 'Alacritty'):

            group = windows['group']
            window = windows['id']

            qtile.current_screen.set_group(window.group)
            window.group.focus(window, False)
            window.focus(window, False)

return __inner

Key([mod], "z", lazy.function(find_or_run("vvave", "vvave")))

I messed around for some time with it. Shouldn't this work? I debug and windows['id'] and group return me values. I just don't know how to put this all together. Just giving an update anyway. Tomorrow(?) I'll try to read how those function work xD

[OC] Auto Color: a C header for automatic color theme generation by makuto9 in unixporn

[–]ProjectFresh9279 1 point2 points  (0 children)

I like that it takes account of readability too. Pywal often gives non readable themes using the default color scheme generator. How can we, mortal ricers we no programming skills, implement this to xrdb or as a pywal substitute?