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

Desktop numbers beyond 10

asked 2013-02-27 23:17:56 +0000

i3er gravatar image

I'd love to be able to number desktops beyond 10 (the current maximum). Is there a way to do this?

thanks!

edit retag flag offensive close merge delete

5 answers

Sort by » oldest newest most voted
3

answered 2013-02-27 23:54:08 +0000

I guess the principle here is to reach a workspace with a single shortcut command ($mod+{number}), so you can't simply hit $mod+11 because the $mod+1 will be triggered first.

A nicer way to overcome this is to use a second auxiliary key:

# workspaces from 1-10
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10

# workspaces from 11-20
bindsym $mod+Control+1 workspace 11
bindsym $mod+Control+2 workspace 12
bindsym $mod+Control+3 workspace 13
bindsym $mod+Control+4 workspace 14
bindsym $mod+Control+5 workspace 15
bindsym $mod+Control+6 workspace 16
bindsym $mod+Control+7 workspace 17
bindsym $mod+Control+8 workspace 18
bindsym $mod+Control+9 workspace 19
bindsym $mod+Control+0 workspace 20

Works fine for me!

(Note that you must adapt this if you are already using the $mod+Control for something else)...

edit flag offensive delete link more

Comments

Awesome! Thanks a bunch.

i3er gravatar imagei3er ( 2013-02-28 19:00:11 +0000 )edit

hardest part to this was figuring out how to find it. Finally found by searching 'workspace 11' ;)

emckenna gravatar imageemckenna ( 2014-07-01 13:43:33 +0000 )edit
0

answered 2013-03-12 10:47:17 +0000

Here is my way of doing this. I use 20 workspaces, and I use 1 through 0 as the left screen and q through p as the left one (numbered 11 to 20)

# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10

# switch to workspace
bindsym $mod+q workspace 11
bindsym $mod+w workspace 12
bindsym $mod+e workspace 13
bindsym $mod+r workspace 14
bindsym $mod+t workspace 15
bindsym $mod+y workspace 16
bindsym $mod+u workspace 17
bindsym $mod+i workspace 18
bindsym $mod+o workspace 19
bindsym $mod+p workspace 20

This way I can still use the same behavior for moving stuff between workspaces. For the keys that are used in the top row, I just rebound, for example quit is now Z not Q.

edit flag offensive delete link more
0

answered 2013-02-27 23:30:42 +0000

Michael gravatar image
  1. copy the line saying “bindsym $mod+0 workspace 10”
  2. paste the line
  3. change 10 to 11
  4. change “$mod+0” to something else.

Repeat for the number of workspaces you want to have.

edit flag offensive delete link more
0

answered 2013-02-27 23:27:09 +0000

Rasi gravatar image

updated 2013-02-27 23:27:32 +0000

who told you there is a maximum? because there isn't And even if there is, its definately not at 10 :) A friend of mine uses i3 with 14 workspaces

edit flag offensive delete link more
0

answered 2013-03-03 03:00:40 +0000

Just find an alternative way to do this task in Vim like style (or like in screen):

mode "wswitch" {
    # You entering in mode where you can choose additional workspaces
bindsym 1 workspace 11; mode "default"
bindsym 2 workspace 12; mode "default"
bindsym 3 workspace 13; mode "default"
bindsym 4 workspace 14; mode "default"
# .....
bindsym Return mode "default"
bindsym Escape mode "default"
}

bindsym $mod+Mod1+space mode "wswitch"

By pressing Win+Alt+space (in my case) we entering mode that allow us to switch workspaces with single key.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-27 23:17:56 +0000

Seen: 764 times

Last updated: Mar 12 '13