3 # Set a background color
5 if which hsetroot >/dev/null 2>/dev/null; then
7 elif which esetroot >/dev/null 2>/dev/null; then
9 elif which xsetroot >/dev/null 2>/dev/null; then
12 test -z $BG || $BG -solid "#303030"
14 GLOBALAUTOSTART="@rcdir@/autostart"
15 AUTOSTART="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/autostart"
17 # Run the global openbox autostart script
18 if test -f $GLOBALAUTOSTART; then
20 elif test -f $GLOBALAUTOSTART.sh; then
21 sh $GLOBALAUTOSTART.sh
24 # Run the user openbox autostart script
25 if test -f $AUTOSTART; then
27 elif test -f $AUTOSTART.sh; then
31 # Run the XDG autostart stuff. These are found in /etc/xdg/autostart and
32 # in $HOME/.config/autostart. This requires PyXDG to be installed.
33 # See openbox-xdg-autostart --help for more details.
34 @libexecdir@/openbox-xdg-autostart "$@"