The i3 FAQ has migrated to https://www.reddit.com/r/i3wm/. All content here is read-only.
Ask Your Question
1

Start on specific workspace failing

asked 2014-02-11 19:36:10 +0000

Pinyaka gravatar image

updated 2014-02-11 19:36:34 +0000

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.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
2

answered 2014-02-12 07:48:26 +0000

cee gravatar image

updated 2014-02-12 07:49:15 +0000

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
edit flag offensive delete link more
1

answered 2014-02-27 17:05:27 +0000

Pinyaka gravatar image

updated 2015-01-29 02:17:23 +0000

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/

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-02-11 19:36:10 +0000

Seen: 1,491 times

Last updated: Jan 29