I recently switched from KDE to Qtile, and I’m having some issues trying to set up multiple displays. I want to have groups 1-5 on one monitor, and 6-9 on the other.
Following this example from the FAQ:
def go_to_group(name: str) -> Callable:
def _inner(qtile: Qtile) -> None:
if len(qtile.screens) == 1:
qtile.groups_map[name].cmd_toscreen()
return
if name in '123':
qtile.focus_screen(0)
qtile.groups_map[name].cmd_toscreen()
else:
qtile.focus_screen(1)
qtile.groups_map[name].cmd_toscreen()
return _inner
for i in groups:
keys.append(Key([mod], i.name, lazy.function(go_to_group(i.name))))
I get an error when I check my config.
error: config failed to import, NameError: name 'Qtile' is not defined
Stub: in file /tmp/tmp42a57p7n/config.pyi:1
MypyFile:1(
/tmp/tmp42a57p7n/config.pyi)
Runtime:
MISSING
Found 1 error (checked 1 module)
Obviously I’m missing an import for ‘Qtile’ here, but I don’t know where to import it from.