2023-08-15 17:37:16 +01:00

129 lines
3.4 KiB
Python

import re
from libqtile.config import Group, Match
class Groups(object):
groups = [
# first group that hold the terminals
Group(
label="",
init=True,
persist=True,
exclusive=False,
matches=[
Match(wm_class=re.compile("^Alacritty.*|^Kitty.*", re.IGNORECASE))
],
layout="monadthreecol",
position=1,
screen_affinity=1,
name="1",
),
Group(
label="",
init=True,
persist=True,
exclusive=False,
matches=[Match(wm_class=re.compile("^Code.*|^Jetbrains.*", re.IGNORECASE))],
position=2,
screen_affinity=1,
name="2",
),
Group(
label="",
init=True,
persist=True,
exclusive=False,
matches=[Match(wm_class=re.compile("^Nemo.*", re.IGNORECASE))],
position=3,
screen_affinity=1,
name="3",
),
Group(
label="",
init=True,
persist=True,
exclusive=False,
matches=[Match(wm_class=re.compile("^Aseprite.*|^Krita.*", re.IGNORECASE))],
position=4,
screen_affinity=1,
name="4",
),
Group(
label="",
init=True,
persist=True,
exclusive=False,
matches=[Match(wm_class=re.compile("^CmusImage.*", re.IGNORECASE))],
position=5,
screen_affinity=1,
name="5",
),
Group(
label="",
init=True,
persist=True,
exclusive=False,
matches=[
Match(
wm_class=re.compile("^Firefox.*|^Brave.*", re.IGNORECASE),
role=["browser"],
)
],
position=6,
screen_affinity=2,
name="6",
),
Group(
label="",
init=True,
persist=True,
exclusive=False,
matches=[
Match(wm_class=re.compile("^Mail.*|^Thunderbird.*", re.IGNORECASE))
],
position=7,
screen_affinity=2,
name="7",
),
Group(
label="",
init=True,
persist=True,
exclusive=False,
matches=[
Match(
wm_class=re.compile("^Steam.*|^Minecraft.*|^0ad.*", re.IGNORECASE)
)
],
position=8,
screen_affinity=2,
name="8",
),
Group(
label="",
init=True,
persist=True,
exclusive=False,
matches=[Match(wm_class=re.compile("^Discord.*", re.IGNORECASE))],
position=9,
screen_affinity=2,
name="9",
),
Group(
label="",
init=True,
persist=True,
exclusive=False,
matches=[
Match(
wm_class=re.compile(
"^Software Management.*|^Virt.*|^Btop.*", re.IGNORECASE
)
)
],
position=10,
screen_affinity=2,
name="0",
),
]