mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-25 11:18:33 +02:00
i3-companion: keep a bit more history for workspace switcher
Useful if we make a workspace disappear.
This commit is contained in:
parent
c96c93ac02
commit
45e503f017
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ async def previous_workspace(i3, event):
|
||||||
output, num = data["output"], data["num"]
|
output, num = data["output"], data["num"]
|
||||||
if history[output][-1:] != [num]:
|
if history[output][-1:] != [num]:
|
||||||
history[output].append(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])
|
logger.debug("on %s, history is %s", output, history[output])
|
||||||
elif event == "previous-workspace":
|
elif event == "previous-workspace":
|
||||||
workspaces = await i3.get_workspaces()
|
workspaces = await i3.get_workspaces()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue