LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   .xinitrc, fluxbox, startup programs (http://www.linuxquestions.org/questions/linux-newbie-8/xinitrc-fluxbox-startup-programs-221334/)

jdier 08-23-2004 12:01 PM

.xinitrc, fluxbox, startup programs
 
I am wondering if anyone could help me out with arguments to put after commands, but before the & in my .xinitrc file to control how programs are launched at start up.

Specifically I would like to know how to dictate which workspace a given app will open to.

Also, is there a way to dictate the size of the window that it opens to.

Any help would be appreciated.

Jim

mikshaw 08-23-2004 03:57 PM

If you're using Fluxbox stable, those questions are answered only by the individual applications...some will be able to and some won't, depending on what command options they have.

If you're using Fluxbox development, these issues can be addressed by putting the applications into ~/.fluxbox/apps instead of ~/.xinitrc

example:
[startup] {aterm}
[startup] {gkrellm -w}
[app] {aterm}
[Workspace] {2}
[Dimensions] (WINCENTER) {90 200}
[end]

You could also leave out "(WINCENTER)" and have a separate "[Position]" line.
if you want to go to that workspace automatically, add "[Jump] {yes}"

Tinkster 08-23-2004 04:14 PM

If you're still on 0.1.14 you could grab the
remember patch, works very well ... it has been
Incorporated in the beta later on.


Cheers,
Tink

jdier 08-26-2004 10:02 AM

Quote:

Originally posted by mikshaw
If you're using Fluxbox stable, those questions are answered only by the individual applications...some will be able to and some won't, depending on what command options they have.

If you're using Fluxbox development, these issues can be addressed by putting the applications into ~/.fluxbox/apps instead of ~/.xinitrc

example:
[startup] {aterm}
[startup] {gkrellm -w}
[app] {aterm}
[Workspace] {2}
[Dimensions] (WINCENTER) {90 200}
[end]

You could also leave out "(WINCENTER)" and have a separate "[Position]" line.
if you want to go to that workspace automatically, add "[Jump] {yes}"

This is perfect!

Could I bother you to expand/expain a bit?

You have
[startup] {aterm}
AND
[app] {aterm}

Why both, and what is the difference?

Is there a call out to make something sticky (on all workspaces?)

Where might I find documentation on this file and how to learn to use it?

Thanks a million for the help so far.

mikshaw 08-26-2004 03:41 PM

[startup] {aterm} <---- launches aterm automatically when fluxbox loads.
[app] {aterm} <---- all the settings for aterm's appearance.
You can have any number of startup apps without specifying their look. Also you can specify the setting for any number of apps without having them startup automatically. I guess this is why the two are separate.
Sticky is the same format as the other settings: [sticky] {yes}

Most of these settings can be applied without editing the file manually. Right-click on the titlebar or application name in the toolbar, and go to "remember".

Docs:
http://fluxbox.sourceforge.net/docbook.php
http://fluxbox.sourceforge.net/docs/en/faq-dev.php
http://fluxbox.sourceforge.net/docbo...uxbox-man.html

The third link is the man page updated for development. It gives a good description of the apps file.


All times are GMT -5. The time now is 12:19 AM.