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

Accessing named workspaces assigned to outputs by number

asked Mar 18 '13

Jesse gravatar image

I have the following lines in my i3 config:

bindsym $mod+1     workspace number 1
workspace "1: mail"   output HDMI2

I would expect pressing $mod+1 to take me to 1: mail, but it instead takes me to workspace 1. Which behavior is expected?

Comments

I originally had the full workspace name in every workspace command, but I was trying to simplify and consolidate my work and home configs. If this behavior is intended -- that workspace 1 and workspace number 1 are different -- I can use variables to solve my problem. If not, I'll send a patch.

Jesse gravatar imageJesse (Mar 18 '13)edit

2 answers

Sort by » oldest newest most voted
1

answered Mar 18 '13

vandannen gravatar image

I can confirm this, but there is one exception: if a corresponding workspace, e.g. "1: mail", was created prior to issuing the command "workspace number 1", the command will focus the previously created workspace. So, this only seems to work for already existing workspaces, though I do not know whether this is intended.

1

answered Mar 19 '13

Michael gravatar image

Use:

workspace number 1: mail

This will switch to workspace number 1, or create “1: mail” if no such workspace exists.

Question Tools

Stats

Asked: Mar 18 '13

Seen: 191 times

Last updated: Mar 19 '13