how to really get custom booting behavior


Forum: X and Fluxbox
Topic: how to really get custom booting behavior
started by: marimo

Posted by marimo on Mar. 04 2006,06:02
I have a HD install of DSL .

So I have read about editing .xinitrc file to customize how elements come up at boot... and my icons no longer come up on boot.I have returned the file to it's orginal state. I have tried to add the 'enhance'  command to the xinitrc file but no joy, no icons at boot.

Also, for example, I have tried to get wavemon to come up at boot-up--doesn't work when I add it to the xinitrc file. Also, I click on 'fully enhanced desktop' listing under the fluxbox menu to get those icons up, then my orinonco-clone wifi card dies (hmm, that's a head scratcher for me)...so then I click on netconfig, go to aterm and type 'wavemon' to make sure I'm getting a nearby wireless signal working. And I usally get it back up again. But, hey, what's happening here?

Another one: due to low ram (256k) on my laptop, I am only using the openoffice.uci file rather than the other openoffice dsl files. OOF doesn't come up when I click on 'fully enhanced desktop' with each reboot I have to reclick on the OOF .uci file in the /tmp file, have all the icons diappear, then select 'fully enhanced desktop' then the icons appear. How do I have these .uci  icons always come up on boot?

Below, I have included my current .xinitirc file.
...and I have commented out dillo. That's it.

Again, any help is appreciated.
And, anyone, feel free to comment in [[  doulbe brackets   ]] or #'s what all this code does, as it would help all us noobs. If there are links somewhere else in this forum that address/answer anything I've asked, please include them. Thanks ahead of time: Marimo


# put X windows programs that you want started here.
# Be sure to add at the end of each command the &

KEYTABLE="$(getknoppixparam.lua KEYTABLE)"
DESKTOP="$(getoption.lua $HOME/.desktop wm)"
ICONS="$(getoption.lua $HOME/.desktop icons)"

# For German Keyboards
if [ $KEYTABLE == "de" ]; then
 xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
fi

#if egrep -qv noicons /proc/cmdline 2>/dev/null; then
if [ "$ICONS" == 1 ]; then
 for x in `ls -1 .xtdesktop/*.hide 2>/dev/null`; do rm -f ${x%.*}; done
 iconsnap.lua &>/dev/null &
 xtdesk &>/dev/null &
fi
#dillo /usr/share/doc/dsl/getting_started.html &>/dev/null &
torsmo 2>/dev/null &
case $DESKTOP in
 fluxbox )
   fluxter &>/dev/null &
   docked.lua &
   swallow.sh docked &
   exec fluxbox 2>/dev/null  
 ;;
 jwm )
   ./.background
   sleep 2
   exec jwm 2>/dev/null
 ;;
 * )
   exec fluxbox 2>/dev/null
 ;;
esac

Posted by mikshaw on Mar. 04 2006,14:22
What does your $HOME/.desktop file look like?  It should contain the line "icons: 1" in order to get icons displayed automatically.

UCI files are mounted, which means they do not persist even if you have a traditional harddrive install.  If you add "mydsl-load /path/to/filename.uci" to $HOME/.bash_profile it should mount automatically when you login.

The 3 variables at the top of the file check for certain options to decide what to do.  
The KEYTABLE variable checks to see if your keyboard needs to be modified for umlaut.
DESKTOP and ICONS check $HOME/.desktop to see which desktop you want to use, and whether to display icons.
Torsmo is the system monitor that displays at the top right of the screen.
The rest is code that utilizes the results of the 3 variables.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.