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

Sorting/Listing method of workspaces in i3status bar

asked 2015-06-19 17:51:14 +0000

a_flamethrowing_duck gravatar image

updated 2015-06-19 19:13:41 +0000

I've renamed the workspaces 1 to >_, 2 to web and 10 to com. The others are not modified.

Now if all workspaces are in use, they are listed as following: 3 4 5 6 7 8 9 >_ com web

How do I define how they're listed? I'd want them to be as they're on the keyboard. >_ web 3 4 5 6 7 8 9 com.

I've just come to the conclusion that this must have something to do with the order in which they are used, as it's different again now. My config below:

# switch to workspace
bindsym $mod+1 workspace >_
bindsym $mod+2 workspace web 
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 com 

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace >_
bindsym $mod+Shift+2 move container to workspace web 
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace com
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-06-19 19:04:55 +0000

i3convert gravatar image

updated 2015-06-20 04:20:01 +0000

See Section 5.2 (Strip workspace numbers) of the guide. You can keep the numbers (which are used for sorting) but stop them from displaying.

  1. Use 1:>_ and 2:web as names of workspaces, instead of >_ and web, respectively.
  2. Add strip_workspace_numbers yes inside the bar{ ... } section and reload the configuration.
edit flag offensive delete link more

Comments

That's hardly a "workaround". It's an intended solution.

Airblader gravatar imageAirblader ( 2015-06-19 22:24:05 +0000 )edit

@Airblader: I didn't intend to offend anyone :)

i3convert gravatar imagei3convert ( 2015-06-20 04:16:09 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2015-06-19 17:51:14 +0000

Seen: 87 times

Last updated: Jun 20