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 2013-06-06 02:39:04 +0000

killown gravatar image

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
4

answered 2013-06-06 08:49:48 +0000

updated 2013-06-06 08:50:05 +0000

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?

edit flag offensive delete link more

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 ( 2013-06-06 13:22:47 +0000 )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 ( 2013-06-06 20:55:44 +0000 )edit

Question Tools

Stats

Asked: 2013-06-06 02:39:04 +0000

Seen: 345 times

Last updated: Jun 06 '13