#!/bin/sh

# start openbox-menu in the background
openbox-menu -o menu.xml -p -g -x -t "sakura -e" lxde-applications.menu &

## Desktop environment

# Start programs automatically at the start of the session
# (copy files from /usr/share/applications/ to your directory 
#  ~/.config/autostart and modify them - ie : for firefox.desktop, remove "%u"
# at the end of the "Exec=" line) 
xdg-autostart &

# root desktop, test
hsetroot -solid black

# a random desktop background. There can be one only. Uncomment ONE LINE ONLY !
# tip : take the second one if you have several wallpapers and want a different
# one at each session. Then deactivate the management of the desktop by pcmanfm : remove the 
# file "pcmanfm-desktop.desktop" from the directory ~/.config/autostart (or move it out of the way)

# Or at your choice use one of the following command lines to create a desktop file which you will put into 
# your ~/.config/autostart directory - in replacement for the "pcmanfm-desktop.desktop"
# file located there.

# feh --bg-scale "$(find ~/.local/wallpapers -type f)" &
#feh --bg-scale "$(find ~/.local/wallpapers -type f |sort -R |tail -1)" &

# Xsnow. And now let is snow ! (With Santa Klaus, sledge... )
/usr/local/bin/xsnow.sh restore

# nice transparency, fadings, shadows.
/usr/local/bin/xcompmgr.sh restore

# the screen will be off if inactive during 10 minutes
#xset dpms 0 0 600 &

# uncomment the next two lines only and screen stays on after default 10 minutes.
#xset s off &
#xset -dpms &

