qtile/qtile — pull request #248 by cjbarnes18 (2012-12-22 09:10:23+00:00)
Title: Provide context when using the addgroup and delgroup hooks.

Configuration examples.

- before

```python
def main(qtile):
@hook.subscribe.addgroup
def goto_group():
if hasattr(qtile, 'currentScreen'):
qtile.groups[-1].cmd_toscreen()
```
- after

```python
@hook.subscribe.addgroup
def goto_group(qtile, name):
if hasattr(qtile, 'currentScreen'):
qtile.groupMap[name].cmd_toscreen()
```