#!/bin/sh

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

# Authentication agent
if [ `uname -m` == "x86_64" ]; then
    /usr/lib64/polkit-gnome-authentication-agent-1 &
else
    /usr/lib/polkit-gnome-authentication-agent-1 &
fi


## Desktop environment

# root desktop, test
#hsetroot -solid black

# Desktop management
/usr/bin/pcmanfm --desktop &

# a panel is useful, choose your's. (Has to be installed)
tint2 &

# fbpanel &
# lxpanel &

sleep 1

# a random desktop background. There can be one only, it
# works with the same command line. I insist : uncomment ONE LINE ONLY !
# tip : take the second one if you have several wallpapers and want a different
# one at each session.

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

# memo
parcellite &

# net_applet
net_applet &

# volumeicon-alsa
volumeicon &

# battery monitor
batti &

# Xsnow. And now let is snow ! (With Santa Klaus, sledge... )
#~/.config/openbox/scripts/xsnow.sh restore

# conky
# conky &

# nice transparency, fadings, shadows.
~/.config/openbox/scripts/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 &

