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 2013-03-18 16:58:46 +0000

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?

edit retag flag offensive close merge delete

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 ( 2013-03-18 20:56:32 +0000 )edit

2 answers

Sort by » oldest newest most voted
1

answered 2013-03-18 18:47:06 +0000

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.

edit flag offensive delete link more
1

answered 2013-03-19 14:02:36 +0000

Michael gravatar image

Use:

workspace number 1: mail

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

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-18 16:58:46 +0000

Seen: 191 times

Last updated: Mar 19 '13