diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 119f0be..8f0a76e 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -74,7 +74,7 @@ keys = [ Key([mod, "shift"], "Return", lazy.spawn("pcmanfm")), Key( [mod, "shift"], - "d", + "s", lazy.spawn( "dmenu_run -i -nb '#191919' -nf '#fea63c' -sb '#fea63c' -sf '#191919' -fn 'NotoMonoRegular:bold:pixelsize=14'" ), @@ -566,37 +566,85 @@ dgroups_app_rules = [] ######################################################### ################ assgin apps to groups ################## ######################################################### -# @hook.subscribe.client_new -# def assign_app_group(client): -# d = {} -# ######################################################### -# ################ assgin apps to groups ################## -# ######################################################### -# d["1"] = ["Navigator", "Firefox", "Vivaldi-stable", "Vivaldi-snapshot", "Chromium", "Google-chrome", "Brave", "Brave-browser", -# "navigator", "firefox", "vivaldi-stable", "vivaldi-snapshot", "chromium", "google-chrome", "brave", "brave-browser", ] -# d["2"] = [ "Atom", "Subl3", "Geany", "Brackets", "Code-oss", "Code", "TelegramDesktop", "Discord", -# "atom", "subl3", "geany", "brackets", "code-oss", "code", "telegramDesktop", "discord", ] -# d["3"] = ["Inkscape", "Nomacs", "Ristretto", "Nitrogen", "Feh", -# "inkscape", "nomacs", "ristretto", "nitrogen", "feh", ] -# d["4"] = ["Gimp", "gimp" ] -# d["5"] = ["Meld", "meld", "org.gnome.meld" "org.gnome.Meld" ] -# d["6"] = ["Vlc","vlc", "Mpv", "mpv" ] -# d["7"] = ["VirtualBox Manager", "VirtualBox Machine", "Vmplayer", -# "virtualbox manager", "virtualbox machine", "vmplayer", ] -# d["8"] = ["pcmanfm", "Nemo", "Caja", "Nautilus", "org.gnome.Nautilus", "Pcmanfm", "Pcmanfm-qt", -# "pcmanfm", "nemo", "caja", "nautilus", "org.gnome.nautilus", "pcmanfm", "pcmanfm-qt", ] -# d["9"] = ["Evolution", "Geary", "Mail", "Thunderbird", -# "evolution", "geary", "mail", "thunderbird" ] -# d["0"] = ["Spotify", "Pragha", "Clementine", "Deadbeef", "Audacious", -# "spotify", "pragha", "clementine", "deadbeef", "audacious" ] -# ########################################################## -# wm_class = client.window.get_wm_class()[0] -# -# for i in range(len(d)): -# if wm_class in list(d.values())[i]: -# group = list(d.keys())[i] -# client.togroup(group) -# client.group.cmd_toscreen() +@hook.subscribe.client_new +def assign_app_group(client): + d = {} + # ######################################################### + # ################ assgin apps to groups ################## + # ######################################################### + d["1"] = [ + "Kitty", + "kitty", + "Tilix", + "tilix", + ] + d["2"] = [ + "Waterfox", + "Firedragon", + "Chromium", + "waterfox", + "firedragon", + "chromium", + "qutebrowser", + ] + d["3"] = [ + "Neovide", + "Neovim", + "VSCodium", + "Notepadqq", + "neovide", + "neovim", + "vscodium", + "notepadqq", + ] + d["4"] = [ + "Pcmanfm", + "Pcmanfm-qt", + "pcmanfm", + "Thunar", + "thunar", + ] + d["5"] = [ + "Vlc", + "vlc", + "Mpv", + "mpv", + "SMPlayer", + "smplayer", + ] + d["6"] = [ + "Inkscape", + "Nomacs", + "Ristretto", + "Nitrogen", + "Feh", + "Gimp", + " Krita", + "inkscape", + "nomacs", + "ristretto", + "nitrogen", + "feh", + "gimp", + "krita", + ] + d["8"] = [ + "Thunderbird", + "Fluffychat", + "thunderbird", + "fluffychat", + ] + # d["0"] = ["Spotify", "Pragha", "Clementine", "Deadbeef", "Audacious", + # "spotify", "pragha", "clementine", "deadbeef", "audacious" ] + # ########################################################## + wm_class = client.window.get_wm_class()[0] + # + for i in range(len(d)): + if wm_class in list(d.values())[i]: + group = list(d.keys())[i] + client.togroup(group) + client.group.cmd_toscreen() + # END # ASSIGN APPLICATIONS TO A SPECIFIC GROUPNAME