Click to See Complete Forum and Search --> : little fluxbox question


reen
02-05-2003, 07:28 PM
:confused: i am wondering how i can tell flux to auto-start my apps.
e.g. "gkrellm -w".

the documentation says smth. about a file called slitlist to be created(or what ever i want to be called) in ~/.fluxbox. so i did create it. i told the init file in my home dir that slitlist does exist and that flux shall read it. next i entered: (gkrellm) /usr/bin/gkrellm -w. but that doesnt work.

so... how can i generally autolunch an app?

help wanted


THX :confused:

DrFrankenstein
02-05-2003, 07:41 PM
Try putting the command in your .bashrc file or one of the startup scripts. .xinitrc possibly?:confused:

reen
02-05-2003, 07:50 PM
i have heard of solution with .xinitrc bot i do not have one.

basically i want gkrellm to be lunched automatically into the slit.
the documentation on the flux site says:

I want my slit apps to remember order!

As of Fluxbox 0.1.10, this is possible, using a slitlist file. Here are some instructions on using it.

The current order of dockapps is stored in a file, by default ~/.fluxbox/slitlist. When loading dockapps into the slit, it attempts to maintain the previous ordering, matching previously-run dockapps by name.

A simple procedure for getting the slit sequences the way you like is:

Ordering dockapps

Run Fluxbox with no pre-loaded dockapps.

Run dockapps individually in the order you want them.

Re-add dockapps to your auto-run script, for example .xinitrc or .xsession. Order doesn't matter here.

This sequence is saved to ~/.fluxbox/slitlist by default and will be maintained in future Fluxbox sessions.

Users are free to manually edit the slitlist file. It is a simple list of window names, one line per dockapp. Like the init file, it should be edited while not running Fluxbox. Otherwise changes may get overwritten.

The user also has the option of choosing a different path for the slit list file. The following example init file entry changes the path:

Example 7-1. Slitlist specification

session.slitlistFile: /home/me/etc/slitsort

Note that there is no option to disable the sorting entirely. The patch author could not think of any benefit to arbitrary ordering.

so i tried.

i even do not know if a xinitrc has anything to say to my X couse i use kdm to start X.

any suggestions???

DrFrankenstein
02-05-2003, 08:03 PM
make a .xinitrc file in your home directory and put the command "gkrellm -w" in it along with any other apps you want. It should look something like:

#!/bin/bash

exec gkrellm -w

or if you use startx it would look something like:

#!/bin/bash

exec fluxbox
exec gkrellm -w

I'm pretty sure that should work.

P.S. the slitlist file is only to keep track of which order the dockapps go in, not to start them. ;)

reen
02-06-2003, 10:14 AM
that is the slitlist fo. i thought it could start progs. THX for that!!

i read that if i use kdm the .xinitrc will not work couse kdm uses its own config file to start X.

reen
02-06-2003, 10:42 AM
by the way. what does that mean: "#!/bin/bash" ?

why do i have to enter the path to my shell? for the environment variables($PATH ?)???

fancypiper
02-06-2003, 10:53 AM
You may have to create the .xinitrc file in your users home directory. You will need to login to a console login and use startx to start the GUI for this to work, BTW.

I do it this way:# uilleann box user phil .xinitrc file
#exec kde
xhost +local:
#exec gnome-session
exec gkrellm -w &
exec xscreensaver &
exec fluxbox

fancypiper
02-06-2003, 10:59 AM
Originally posted by reen
by the way. what does that mean: "#!/bin/bash" ?That's a shebang statement telling the OS that this is a bash shell script.

Configuration files do not need this, (example .xinitrc) but executable scripts do.

Ashe
02-06-2003, 01:41 PM
if you did what I did and fluxbox is called directly, you can cheat :P

http://www.justlinux.com/forum/showthread.php?postid=490823#post490823

reen
02-06-2003, 07:03 PM
with the hints you gave me, two books and about 5 houres i got it to work the xdm style.

i am using debian.
to get rid of kdm i d'e'selected it. and chose gdm as my dm. since that didnt work i d'e'selected every single dm i had installed. just to reinstall xdm and it finally worked. then came the bookreading time where i learned much about the X System and its start procedure. BTW you do not have to put #!/bin/bash in front of your .xsession to get it to work. you can create it by entering "touch ~/.xsession" , and make it bootable by typing "chmod u+x ~/.xsession". i wrote "/usr/bin/gkrellm -w &" and "exec /usr/bin/fluxbox" into that file. and it worked.

you might wonder why i write all this stuff though i was the one who wanted the help.
perhaps someone has the same prob like me... and this defnitly works.

i thank the ones that responded to my question. you started to role the stone. THX

it is so funny! i have been using linux for 5 weeks now. debian firstimer!
and i learned in this periode more bout OS/Linux than i have learned bout windows in over 6 years. :cool:

fancypiper
02-06-2003, 07:47 PM
Isn't freedom great? :D

slickquickyb
02-10-2003, 01:57 AM
reen,

I have been having same problem couldnt figure out why the heck my .xsession wouldnt work. Well i didnt make it executable i am trying that now. Thanks a bunch man i couldnt figure why the xsession file wouldnt work when everyone said it should. I think the .xinitrc is different because it works with start x and doesnt have to executable. Anyway thanks a bunch for the insight.