You are not logged in.

#1 2016-01-05 18:18:47

k4153r
Member
Registered: 2016-01-05
Posts: 5

[SOLVED] Named workspaces order in i3bar

Hi,

I'm a new Arch and i3 user, I've been playing around with i3 config and named my workspaces (because I can).
Now I have this weird order when I launch my workspaces, e.g. if I launch ws2 before ws1 it shows the second one first.

I would like it if I could have ws1 always first, ws2 always second...

I hope I'm clear enough. Here is part of my i3 config file.

# ASSIGN WORKSPACE VARIABLES
set $WS1 [ term ]
set $WS2 [ web ]
set $WS3 [ code ]
set $WS4 [ pdf ]
set $WS5 [ media ]
set $WS6 [ vbox ]


# switch to workspace
bindsym $mod+1 workspace $WS1
bindsym $mod+2 workspace $WS2
bindsym $mod+3 workspace $WS3
bindsym $mod+4 workspace $WS4
bindsym $mod+5 workspace $WS5
bindsym $mod+6 workspace $WS6


# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $WS1
bindsym $mod+Shift+2 move container to workspace $WS2
bindsym $mod+Shift+3 move container to workspace $WS3
bindsym $mod+Shift+4 move container to workspace $WS4
bindsym $mod+Shift+5 move container to workspace $WS5
bindsym $mod+Shift+6 move container to workspace $WS6

I couldn't find anything about workspaces order on i3 documentation nor on the arch wiki about i3.
Thank you.

Last edited by k4153r (2016-01-06 02:18:10)

Offline

#2 2016-01-05 19:45:30

karlch
Member
Registered: 2015-06-14
Posts: 105

Re: [SOLVED] Named workspaces order in i3bar

Welcome to the forums!

The chances are you didn't read very well tongue

Number your workspaces like this:

set $WS1 1:[ term ]
set $WS2 2:[ web ]
...

and then if you don't want to see the prefixed numbers add:

bar {
    strip_workspace_numbers yes
}

to your bar config.

See i3 user's guide smile

Offline

#3 2016-01-06 02:10:35

k4153r
Member
Registered: 2016-01-05
Posts: 5

Re: [SOLVED] Named workspaces order in i3bar

Thank you. Indeed I must have missed that. Sorry.

Offline

Board footer

Powered by FluxBB