From 45e503f0179acfa52907b30a43e644873cdc24e2 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 6 Aug 2021 10:45:27 +0200 Subject: [PATCH] i3-companion: keep a bit more history for workspace switcher Useful if we make a workspace disappear. --- bin/i3-companion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/i3-companion b/bin/i3-companion index 9fc6741..6b18da8 100755 --- a/bin/i3-companion +++ b/bin/i3-companion @@ -342,7 +342,7 @@ async def previous_workspace(i3, event): output, num = data["output"], data["num"] if history[output][-1:] != [num]: history[output].append(num) - history[output] = history[output][-2:] + history[output] = history[output][-5:] logger.debug("on %s, history is %s", output, history[output]) elif event == "previous-workspace": workspaces = await i3.get_workspaces()