#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# You can set your favourite wallpaper here if you don't want
# to do it from your style.
#
# fbsetbg -f /home/jdbernard/pictures/wallpaper.png
#
# This sets a black background

#/usr/bin/fbsetroot -solid black

# This shows the fluxbox-splash-screen
# fbsetbg -C /usr/share/fluxbox/splash.jpg

# Other examples. Check man xset for details.
#
# Turn off beeps:
# xset -b
#
# Increase the keyboard repeat-rate:
# xset r rate 195 35
#
# Your own fonts-dir:
# xset +fp "/home/jdbernard/.fonts"
#
# Your favourite mouse cursor:
# xsetroot -cursor_name right_ptr
#
# Change your keymap:
xmodmap "/home/jdbernard/.Xmodmap"

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
source ~/.profile
xset +fp $HOME/.fonts
xrdb ~/.Xdefaults/standard
sleep 0.2s
gnome-settings-daemon &
gnome-keyring-daemon --start --components=ssh,secrets,pkcs11 &
sleep 0.2s
sync-now &
ng-start &
nm-applet &
gnome-sound-applet &
/opt/extras.ubuntu.com/touchpad-indicator/bin/touchpad-indicator &
#ng-start
conky

st &
# Debian-local change:
#   - fbautostart has been added with a quick hack to check to see if it
#     exists. If it does, we'll start it up by default.
which fbautostart > /dev/null
if [ $? -eq 0 ]; then
    fbautostart
fi

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

exec fluxbox
# or if you want to keep a log:
# exec fluxbox -log "/home/jdbernard/.fluxbox/log"
