thanks anonymous
i actually managed to find it, its quite a few programs, heres a chopped down version that should work:
#! /bin/sh
#
# Multi-call script providing GTK boxes to manage a desktop following
# Freedesktop standards.
#
# (C) GNU gpl v3 - SliTaz GNU/Linux 2008.
#
# VERSION=20090504
#
# chopped down a lot for CrunchBang Linux by Ben Holroyd 2009
#
export AUTOSTART_EDITOR=leafpad
# Export script path and other if needed so we can use them in 'quote'.
export BIN=$0
export AUTOSTART_SCRIPT=$HOME/.config/openbox/autostart.sh
# Openbox autostart functions, first column is used for icon
autostart_list()
{
# Enabled
for app in `cat $AUTOSTART_SCRIPT | grep ^[a-z] | awk '{ print $1 }'`
do
comment=`grep -B 1 "^$app" $AUTOSTART_SCRIPT | grep '^# ' | sed s/'#'//`
[ -x /usr/bin/$app ] && echo "go-next | $app | $comment"
done
# Disabled
for app in `cat $AUTOSTART_SCRIPT | grep ^#[a-z] | awk '{ print $1 }'`
do
comment=`grep -B 1 "^$app" $AUTOSTART_SCRIPT | grep '^# ' | sed s/'#'//`
app=${app#\#}
[ -x /usr/bin/$app ] && echo "stop | $app | $comment"
done
}
# Enable or disbale autostarted applications.
autostart_actions()
{
if grep -q "^$APPLICATION" $AUTOSTART_SCRIPT; then
sed -i s/"^$APPLICATION"/"\#$APPLICATION"/ $AUTOSTART_SCRIPT
else
sed -i s/"^\#$APPLICATION"/"$APPLICATION"/ $AUTOSTART_SCRIPT
fi
}
add_autostarted_app()
{
if ! grep -q "^$NEW_APP" $AUTOSTART_SCRIPT; then
NEW_APP=`echo $NEW_APP | sed s/'&'/''/`
echo "" >> $AUTOSTART_SCRIPT
echo "# $NEW_COMMENT" >> $AUTOSTART_SCRIPT
echo "$NEW_APP &" >> $AUTOSTART_SCRIPT
fi
}
add_autostarted_app_box()
{
export ADD_AUTO_START_BOX='
<window title="Add auto started applications" icon-name="preferences-system-session">
<vbox>
<text width-chars="54">
<label>"
Add a new application starting with your session
"</label>
</text>
<hbox>
<text>
<label>"Application:"</label>
</text>
<entry>
<variable>NEW_APP</variable>
</entry>
</hbox>
<hbox>
<text>
<label>"Comment: "</label>
</text>
<entry>
<variable>NEW_COMMENT</variable>
</entry>
</hbox>
<hbox>
<button ok>
<action>$BIN add_autostarted_app</action>
<action type="exit">exit</action>
</button>
<button cancel></button>
</hbox>
</vbox>
</window>'
gtkdialog --center --program=ADD_AUTO_START_BOX
}
# Box commands.
case $1 in
*_*)
# Exec all function called by args (must have an underscore).
$1
exit 0 ;;
*)
# Autostarted apps management. Functions are used for input
# and actions
export DESKTOP_DIALOG='
<window title="Auto start applications with Openbox" icon-name="preferences-system-session">
<vbox>
<tree>
<width>540</width><height>200</height>
<variable>APPLICATION</variable>
<label>Application|Comment</label>
<input icon_column="0">$BIN autostart_list</input>
<action>$BIN autostart_actions</action>
<action>refresh:APPLICATION</action>
</tree>
<hbox>
<text width-chars="36">
<label>
"Double click to enable/disable an application"
</label>
</text>
<button>
<label>Add</label>
<input file icon="gtk-add"></input>
<action>$BIN add_autostarted_app_box</action>
<action>refresh:APPLICATION</action>
</button>
<button>
<label>Configuration</label>
<input file icon="accessories-text-editor"></input>
<action>AUTOSTART_EDITOR $AUTOSTART_SCRIPT</action>
<action>refresh:APPLICATION</action>
</button>
<button>
<label>Exit</label>
<input file icon="exit"></input>
<action type="exit">exit</action>
</button>
</hbox>
</vbox>
</window>'
;;
esac
gtkdialog --center --program=DESKTOP_DIALOG >/dev/null
exit 0
if anyones interested, you need to install 'gtkdialog' first
also if it doesn't read you config file correctly (~/.config/openbox/autostart.sh) it treats commented out commands as '#command' (no space) and comments for a command are interpreted as '# comment' (with a space) preceding a command.