guest@dotshare [~/groups/wms/openbox] $ ls Openbox-Autostart/ | cat

Openbox Autostart (+1 likes)

eddiegj Oct 22, 2013 (wms/openbox)

autostart_functions(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash

function effects {
	compton --shadow-exclude 'g:e:Conky' --config ~/.config/compton.conf &
}

function cUserpanel {
	conky -c ~/.config/conky/Userpanel &
}

function screensaver {
	xset -dpms & xset s noblank & xset s off &
	xautolock -time 20 -locker slock &
}

function menu {
	tint2 &
	volumeicon &
	vattery &
	#clipit &
}

function wallpaper {
	nitrogen --restore &
	#if [ -r ~/.wallpaper.png ]; then
	#   hsetroot -fill ~/.wallpaper.png &
	#else
	#   hsetroot -fill /usr/share/wallpapers/archbang-sky.png &
	#fi
}

function setDisplay {
	xrandr --output VGA1 --mode 1680x1050 --rate 60.0 --output LVDS1 --off &
}

CLICK TO VIEW

x

autostart(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

if [ -x ~/.config/openbox/autostart_functions ]; then
	. ~/.config/openbox/autostart_functions
fi

setDisplay &

menu &
wallpaper &

effects &
cUserpanel &

# Cloud File Storage
dropboxd &
CopyAgent &

#pytyle3 &

screensaver &
 

x

Notes

My way of keeping order in config files. That many Ampersand’s are not really needed, but i do that in case i forget somewhere.