cycling by any number of windows
Dana Jansens danakj@orodu.net
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
scripts/focus.py
→
scripts/focus.py
@@ -71,11 +71,11 @@ if ob_focus_raise:
screen.raiseWindow(client) return if forward: - t += 1 - if t == count: t = 0 + t += num + if t >= count: t -= count else: t -= 1 - if t < 0: t = count - 1 + if t < 0: t += count if t == target: return # nothing to focus def focus_prev(data, num=1):