Skip to content

Commit

Permalink
Update FAQ section on sticking groups to screens (#4598)
Browse files Browse the repository at this point in the history
  • Loading branch information
00000vish committed Nov 28, 2023
1 parent 40e97a8 commit 217aa01
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/manual/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ of binding keys to ``lazy.group[name].toscreen()``, use this:
Group(name="e", screen_affinity=1),
]
def go_to_group(name: str) -> Callable:
def _inner(qtile: Qtile) -> None:
def go_to_group(name: str):
def _inner(qtile):
if len(qtile.screens) == 1:
qtile.groups_map[name].toscreen()
return
Expand Down Expand Up @@ -135,6 +135,9 @@ To be able to move windows across these groups which switching groups, a similar
return _inner
for i in groups:
keys.append(Key([mod, "shift"], i.name, lazy.function(go_to_group_and_move_window(i.name))))
If you use the ``GroupBox`` widget you can make it reflect this behaviour:

.. code-block:: python
Expand Down

0 comments on commit 217aa01

Please sign in to comment.