Skip to content

Commit

Permalink
Fix strachpad global keybinds & remove discord scratchpad
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Jan 4, 2024
1 parent fdf9bed commit 628a78d
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions home/qtile/src/core/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,23 @@ def __init__(self, name: str, key: str):
super().__init__(name)
self.setup_keys()

def setup_keys(self):
move = Key([mod], self.key, lazy.group[self.name].toscreen())
switch = Key(
[mod, "shift"], self.key,
lazy.window.togroup(self.name, switch_group=True),
)

@classmethod
def setup_single_keys(cls):
toggle_term = Key(
[mod, "shift"], "space",
lazy.group["scratchpad"].dropdown_toggle("term"),
)

toggle_discord = Key(
[mod, "shift"], "d",
lazy.group["scratchpad"].dropdown_toggle("discord"),
keys.append(toggle_term)

def setup_keys(self):
move = Key([mod], self.key, lazy.group[self.name].toscreen())
switch = Key(
[mod, "shift"], self.key,
lazy.window.togroup(self.name, switch_group=True),
)

keys.extend((move, switch, toggle_term, toggle_discord))
keys.extend((move, switch))


_scratchpads = [
Expand Down Expand Up @@ -63,6 +62,7 @@ def setup_keys(self):
)
]

_Group.setup_single_keys()
groups = _scratchpads + [
_Group(lb, k) for lb, k in zip(
"ζπδωλσς", [
Expand All @@ -78,4 +78,3 @@ def setup_keys(self):
]
)
]

0 comments on commit 628a78d

Please sign in to comment.