; This is a DaggeX startup-script

;general stuff for server startup

stack 300000	; might work with less
changetaskpri 1

;start daggex on a native B&W screen with AmiTCP connections

run >nil: <nil: daggex -fp $FONTPATH -auth $XAUTHORITY -amitcp

;start DaggeX running 256-color 1280x1024 picasso-II screen
;run >nil: <nil: daggex -fp $FONTPATH -auth $XAUTHORITY -village -depth 8 -width 1280 -height 1024 -amitcp

;wait for a while to let the user decide the screenmode if using native gfx, use shorter wait
;if using -width and -height.

changetaskpri 0

wait 20	;should be enough

;then start yup twm

run >nil: <nil: twm -f system.twmrc

echo "X started"
