2021-01-26 16:09:03 -08:00
|
|
|
from libqtile.config import Key, Group, ScratchPad, DropDown, Match, hook
|
2021-01-23 16:10:15 -08:00
|
|
|
from libqtile.command import lazy
|
|
|
|
from settings.keys import mod, keys
|
|
|
|
|
|
|
|
# Define groups I have
|
|
|
|
groups = [Group(i) for i in [
|
2021-01-26 16:09:03 -08:00
|
|
|
"1", "2", "3", "4", "5"
|
2021-01-23 16:10:15 -08:00
|
|
|
]]
|
|
|
|
|
|
|
|
# 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))
|
|
|
|
])
|
2021-01-26 16:09:03 -08:00
|
|
|
|
|
|
|
groups.append(
|
2022-02-11 17:56:52 -08:00
|
|
|
#Group("Comm", spawn="discord", persist=True)
|
|
|
|
ScratchPad("Comm", [DropDown("d", "discord", match=Match(wm_class="discord"), x=0.1, y=0.1, width=0.8, height=0.8)])
|
2021-01-26 16:09:03 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
keys.extend([
|
2022-02-11 17:56:52 -08:00
|
|
|
Key([mod], "d", lazy.group["Comm"].dropdown_toggle("d"))
|
2021-01-26 16:09:03 -08:00
|
|
|
])
|
|
|
|
|