qtile/qtile — pull request #110 by AeroNotix (2012-03-31 21:22:53+00:00)
Title: Added cmd_swap_groups

New function which will allow for two groups on the same screen to be swapped around. I don't have multiple screens so I can't test this (someone can send me a monitor, kthx).

Usage is in the docstring but I'll put it here for the lazy:

Key([sup, "shift"], NUMBER, lazy.group.swap_groups(grp.name))

I've found this to be an extremely useful addition to my commands. A useful update to this would be to get the layouts from both the target and the source and swap them around too, shouldn't be too hard.