mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
28 lines
693 B
Python
28 lines
693 B
Python
from libqtile.config import Key, Group, ScratchPad, DropDown, Match, hook
|
|
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"
|
|
]]
|
|
|
|
# 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))
|
|
])
|
|
|
|
groups.append(
|
|
Group("Comm", spawn="discord", persist=True)
|
|
)
|
|
|
|
keys.extend([
|
|
Key([mod], "d", lazy.group["Comm"].toscreen())
|
|
])
|
|
|