Hi every one,
When I do mod + digit (e.g. super+4) nothing happens, when I expect Qtile to switch to the 4th group.
Idem when I do Shift + mod + digit on an application, it is not sent to the expected group.
Here is my group.py
:
# Imports
from libqtile.config import Key, Group, Match
from libqtile.command import lazy
from .keys import keys, mod
# Variables
groups = [
Group("1"),
Group("2", matches=[Match(wm_class=["chromium"])]),
Group("3", matches=[Match(wm_class=["emacs"])]),
Group("4", matches=[Match(wm_class=["keepassxc"])]),
Group("5"),
Group("6"),
Group("7"),
Group("8"),
Group("9"),
]
mod = "mod4"
# Group config
for i in groups:
keys.extend([
# mod1 + letter of group = switch to group
Key([mod],
i.name,
lazy.group[i.name].toscreen(),
desc="Switch to group {}".format(i.name)),
Key([mod], "Right", lazy.screen.next_group(),
desc="Switch to next group"),
Key([mod], "Left", lazy.screen.prev_group(),
desc="Switch to previous group"),
# mod1 + shift + letter of group = switch to & move focused window to group
Key([mod, "shift"],
i.name,
lazy.window.togroup(i.name, switch_group=True),
desc="Switch to & move focused window to group {}".format(i.name)),
# Or, use below if you prefer not to switch to that group.
# # mod1 + shift + letter of group = move focused window to group
# Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
# desc="move focused window to group {}".format(i.name)),
])