mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
19 lines
542 B
Python
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))
|
|
])
|