Startup applications....


Forum: X and Fluxbox
Topic: Startup applications....
started by: Neilo

Posted by Neilo on Jan. 21 2005,10:40
Ok, i've installed dsl on my laptops harddrive, all is going well and i've got linux pretty much figure out now, although there are a few things im unsure of.

In windows, any applications you want to run on start can be put into the registry, or start/programs/startup. How is this done in dsl? Its just so I can stick the battery monitor, and other dockable apps onto where the wmcpuload, wmmount, etc are.

Once again, i've been using linux for 2 days now? So I don't exactly know it inside out.

Posted by Patrick on Jan. 21 2005,11:08
Edit your ~/xinitrc !

(this is mine xinitrc)
xset s off s noblank & #don't blank the screen
cp /cdrom/keep/scriptjes/.torsmorc /home/dsl & #run a script
cp /cdrom/keep/scriptjes/moon.jpg ~/.xplanet/images & #copy a jpg
sh /cdrom/keep/scriptjes/ipoutside.sh & # run a script
/usr/bin/wmcpuload -bl -n & #start wmcpuload and put it in the slit
/usr/X11R6/bin/wmnet -w & start wmnet and put it in the slit
/usr/bin/wmtop -s 100 -m -a 5 & # start wmtop and put it in the slit
/cdrom/keep/Dockable/usr/bin/wmclockmon & #start wmclockmon
/cdrom/keep/Dockable/usr/bin/wmsmixer -w &start wmmixer  and put it in the slit
/cdrom/keep/Dockable/usr/bin/wmcdplay -w & #start wmcdplay
/usr/bin/wmbiff & #start wmiff
/usr/bin/wmifinfo -w & #start wmifinfo
/usr/bin/wmMatrix & #start wmMatrix
/usr/bin/wmdrawer & # start wmDrawer
sh /cdrom/keep/scriptjes/xplanetmoon & #run a script
#/usr/X11R6/bin/wmMoonClock -lat 51 -lon 5 &
/usr/bin/wmSun -lon 5 -lat 51 -td -1 & #run wmSun
/usr/bin/xsnow -whirl 2 -notrees -nosanta -norudolf & # run xsnow
/opt/fluxbox-0.9.11/bin/fluxbox #start fluxbox

Backup any changes you make to your system (in the file: /opt/filetool.lst and run the backup). Anything behind # is NOT executed

Posted by Neilo on Jan. 21 2005,12:00
Genius!  :D I guessed there would be a script somewhere, guess I just have to get used to this...been using windows for 10 years so this is a difficult transition...now to find how to write c++ apps...gcc is included in dsl isnt it?
Posted by Patrick on Jan. 21 2005,13:04
it's in the repository... (http://www.ibiblio.org/pub/Linux/distributions/damnsmall/)

in < http://www.ibiblio.org/pub/Linux/distributions/damnsmall/mydsl/system/ >

gcc1.dsl

download it and execute it from emelfm with the button myDSL

Posted by libretto on Jan. 21 2005,13:33
Speaking of gettting things to run before fluxbox, I've got a little script (written by milkshaw), which when run, changes the desktop background (pic chosen randomly from a folder). I tried adding the script line before and after the fluxbox load line in .xinitrc, but the background defaults to the one from the theme.

Any ideas?

Posted by mikshaw on Jan. 21 2005,15:50
If you set the background with a script prior to running Fluxbox, the background will change again through either the style or .fluxbox init.

If you add the script after the fluxbox line it won't run until after fluxbox closes, which is pointless (unless you want to manually restart fluxbox every time you log in).

What you could do to make the background script run automatically and stay is to use it as the rootcommand in either .fluxbox/init or in your style file.  Using it in a style will run the script only for that particular style.  Using it in init will override all style root commands.  Reloading fluxbox in either case should rerun the script and you'll get a new background (just guessing...haven't tested it).

rootCommand:  /path/to/script
or
session.screen<number>.rootCommand: /path/to/script

Posted by libretto on Jan. 22 2005,09:40
Ok borrowed a style, made a copy and appended the line. Works fine now! cheers! :laugh:
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.