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

Start on specific workspace failing

asked Feb 11 '14

Pinyaka gravatar image

updated Feb 11 '14

My questions are:

  1. Why does virtualbox keep opening up on workspace 1 or workspace 3?
  2. Why doesn't an empty workspace 2 consistently open on my second monitor (HDMI1)?
  3. How can I fix this?

I am using i3 version 4.7.2 under Ubuntu 13.10.

I have the following lines in my config.

workspace 9 output HDMI1
workspace 2 output HDMI1
workspace 1 output VGA1
workspace 7 output VGA1
workspace 8 output VGA1
exec --no-startup-id i3-msg 'workspace 7; exec libreoffice --calc'
exec --no-startup-id i3-msg 'workspace 8; exec virtualbox'
exec --no-startup-id i3-msg 'workspace 1; exec google-chrome'
exec --no-startup-id i3-msg 'workspace 9; exec banshee; workspace 2'

virtualbox always starts on workspace 1 or workspace 3 (why does that even open?), no matter where it's placed or whether I include switching to another workspace after running the other exec commands (ie exec --no-startup-id i3-msg 'workspace 7; exec libreoffice --calc'; workspace 8).

Also, The behavior of banshee is dependent on the virtualbox line for some reason. If I comment the virtualbox line out, then banshee starts like normal and an empty workspace 2 opens up on my second monitor. If I leave the virtualbox exec in, banshee opens, but workspace 9 remains the active workspace on my second monitor and workspace 2 is not created.

2 answers

Sort by » oldest newest most voted
2

answered Feb 12 '14

cee gravatar image

updated Feb 12 '14

I did it like that and it works reliably.

bindsym $sup+a exec audacious  
assign [class="Audacious"]   $w9

Where

set $sup Mod4
set $w9 ws9 #name workspace 9
1

answered Feb 27 '14

Pinyaka gravatar image

updated Jan 29 '15

Some programs don't use startup-notifications (all of them, in this case). Because of this, they will open on whichever desktop is open at the time. You can get around this by using the assign statement for some programs (VirtualBox, libreoffic and banshee). For others without useful classes (google-chrome) you can use keywords from the title and open local html files as in the answer to the following question.

faq.i3wm.org/question/3447/race-condition-for-startup-applications/

Question Tools

Stats

Asked: Feb 11 '14

Seen: 1,491 times

Last updated: Jan 29