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

i3 startup sequence and role of config file

asked 2015-02-09 07:46:55 +0000

Shankar gravatar image

I have been struggling to get a window to start in the scratchpad (I have an earlier question on this, but can't link to it). I finally - partially - fixed that by switching to lilyterm from urxvt. But I have continued to have odd delays and failures in startup when I've tried to start other programs (for instance, Claws Mail and Iceweasel; sometimes they start from exec commands in config, sometimes they don't). This leads me to wonder if i3 is not yet 'ready' at the time of the config file to load certain windows. In that context I had two questions:

  1. What is the i3 startup sequence and where does the config file fit in this?

  2. Is there is anything one can put in the config file to make sure that certain commands are only executed after i3 is "ready"? Would shifting those commands to a separate script and executing them with i3-msg help?

edit retag flag offensive close merge delete

Comments

What are you using in your config file to do this? Did you check [the debugging output](http://i3wm.org/docs/debugging.html)

topernic gravatar imagetopernic ( 2015-02-13 15:01:34 +0000 )edit

Sorry, I just saw this. I haven't checked out the debugging output. I found that shifting all the exec commands (and the scratchpad stuff) to a separate script, and putting in only one exec_always call to that script at the end of the config, worked. I still don't know why, however.

Shankar gravatar imageShankar ( 2015-02-14 13:37:52 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-14 23:00:24 +0000

Gamonics gravatar image

updated 2015-02-14 23:02:34 +0000

So the question/answer aspect of this site is new to many people. It takes it's lead I think from the StackExchange software and communities. And idea is that one answers the questions (even if posed by oneself).

So bearing in mind that you actually answered your own question in the comments area of the question, I'm going to take the liberty of answering your question in the answer field in hopes of demonstrating the general method of using this site.

You wrote: "I found that shifting all the exec commands (and the scratchpad stuff) to a separate script, and putting in only one exec_always call to that script at the end of the config, worked. I still don't know why, however."

And with that, both your question and your/my answer may deserve some votes by other readers. And if they garner some votes, then I have a feeling that the contributors' karma points begin to go up. And with higher karma point scores, we can all do things like add screenshots and links to our questions and answers. And we can even vote up questions and answers (after attaining a minimum of 10 karma points; which I've not yet done so I cannot up-vote your question).

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-02-09 07:46:55 +0000

Seen: 767 times

Last updated: Feb 14