]> Dogcows Code - chaz/openbox/blob - data/autostart/openbox-autostart.in
063c635feb39c78767d8826c56eb01a14c6c746b
[chaz/openbox] / data / autostart / openbox-autostart.in
1 #!/bin/sh
2
3 # Set a background color
4 BG=""
5 if which hsetroot >/dev/null; then
6 BG=hsetroot
7 elif which esetroot >/dev/null; then
8 BG=esetroot
9 elif which xsetroot >/dev/null; then
10 BG=xsetroot
11 fi
12 test -z $BG || $BG -solid "#303030"
13
14 GLOBALAUTOSTART="@rcdir@/autostart"
15 AUTOSTART="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/autostart"
16
17 # Run the global openbox autostart script
18 if test -f $GLOBALAUTOSTART; then
19 sh $GLOBALAUTOSTART
20 elif test -f $GLOBALAUTOSTART.sh; then
21 sh $GLOBALAUTOSTART.sh
22 fi
23
24 # Run the user openbox autostart script
25 if test -f $AUTOSTART; then
26 sh $AUTOSTART
27 elif test -f $AUTOSTART.sh; then
28 sh $AUTOSTART.sh
29 fi
30
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 "$@"
This page took 0.037047 seconds and 3 git commands to generate.