My collection of plugins for the Qtile window manager.
git clone https://mcol.xyz/code/qtools
Log | Files | Refs | README

commit 1928c8efb7e459871562ae917d6e0cc7c6fad659
parent 378c91408fe31379d5e46f077a6dbd8394256063
Author: mcol <mcol@posteo.net>
Date:   Wed,  3 Jun 2020 15:13:26 +0100

update focus docstring with example usage

Diffstat:
Mqtools/focus/focus.py | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/qtools/focus/focus.py b/qtools/focus/focus.py @@ -4,7 +4,16 @@ move window focus to the first window in that general direction. Focussing is ba entirely on position and geometry, so is independent of screens, layouts and whether windows are floating or tiled. -Example usage: binding a key to lazy.function(qtools.focus.right) +Example usage: + + import qtools.focus + keys.extend([EzKey(k, v) for k, v in { + 'M-k': lazy.function(qtools.focus.up) + 'M-j': lazy.function(qtools.focus.down) + 'M-h': lazy.function(qtools.focus.left) + 'M-l': lazy.function(qtools.focus.right) + }.items()]) + """