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

cycling through active workspaces

asked Nov 20 '14

updated Nov 20 '14

Is there a way to cycle through active workspaces? For example, if I have the following workspaces active:

 [1]  [2]  [4]  [6]

I'd like to have a key bound to a command that would display workspaces 1, 2, 4, and 6 in sequence; then cycle back to workspace 1.

I'm familiar with the workspace back_and_forth command and use it frequently.

Update:

I used @cee's recommendation, but bound the keys in the following manner so there is no conflict with the default cursor key assignments:

# Cycle through active workspaces
bindsym $mod+Tab workspace next
bindsym $mod+Shift+Tab workspace prev

1 answer

Sort by » oldest newest most voted
2

answered Nov 20 '14

cee gravatar image

You can use

bindsym Mod4+Right workspace next
bindsym Mod4+Left workspace prev

to cycle through your open workspaces with Windowskey and arrow left|right.

Comments

@cee: Works, thanks. I checked the User's Guide and didn't see a description for this command. Should I file a documentation ticket?

Jeff Bauer gravatar imageJeff Bauer (Nov 20 '14)edit

@Jeff Bauer: Thank you, but no, that is not necessary: It is already there, in section [6.5 Changing (named) workspaces/moving to workspaces](http://i3wm.org/docs/userguide.html#_changing_named_workspaces_moving_to_workspaces).

Adaephon gravatar imageAdaephon (Nov 21 '14)edit

Question Tools

Stats

Asked: Nov 20 '14

Seen: 266 times

Last updated: Nov 20 '14