Skip to content

Commit

Permalink
refactor(groups): remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
jx11r committed Jul 16, 2023
1 parent 8df4ac3 commit 3dcba62
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
]): # fmt: skip
groups.append(Group(key, matches, layout=layout, label=tag[i]))

for group in groups:
keys.extend([
# mod1 + letter of group = switch to group
Key([mod], group.name, lazy.group[group.name].toscreen(toggle=True)),
Key([mod], key, lazy.group[key].toscreen(toggle=True)),

# mod1 + shift + letter of group = move focused window to group
Key([mod, "shift"], group.name, lazy.window.togroup(group.name)),
Key([mod, "shift"], key, lazy.window.togroup(key)),
]) # fmt: skip

0 comments on commit 3dcba62

Please sign in to comment.