2021-01-23 16:10:15 -08:00

19 lines
542 B
Python

from libqtile.config import Key, Group
from libqtile.command import lazy
from settings.keys import mod, keys
# Define groups I have
groups = [Group(i) for i in [
"1", "2", "3", "4", "5", "6", "7", "8", "9",
]]
# Define keybinds for groups
for i, group in enumerate(groups):
actual_key = str(i + 1)
keys.extend([
# Switch to workspace N
Key([mod], actual_key, lazy.group[group.name].toscreen()),
# Send window to workspace N
Key([mod, "shift"], actual_key, lazy.window.togroup(group.name))
])