The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

Moving to the last visited workspace

asked Jun 6 '13

killown gravatar image

how can I set up i3 for move to the last visited workspace when the current workspace is empty?

1 answer

Sort by » oldest newest most voted
4

answered Jun 6 '13

updated Jun 6 '13

In your config, set the option workspace_auto_back_and_forth yes. When you are on, say, workspace 1 now and switch to 4 (which is empty), another $mod+4 takes you back to workspace 1. I think this is kind of what you want?

Comments

thanks for the reply, but the problem with workspace_auto_back_and_forth is when for example I use Mod1+Enter it will move to the workspace terminals and open a terminal, and if I use Mod1+Enter one more time it will back to the last visited workspace and the terminal will be opened there .

killown gravatar imagekillown (Jun 6 '13)edit

in the case of mod+enter, you could still check whether you already are on the "terminals"-workspace before issuing the command to move there. See ipc guide: http://i3wm.org/docs/ipc.html#_workspaces_reply

vandannen gravatar imagevandannen (Jun 6 '13)edit

Question Tools

Stats

Asked: Jun 6 '13

Seen: 345 times

Last updated: Jun 06 '13