Start urxvt and do whatever is needed to open the screen session named "main"
screen -ls | grep main && urxvt -name screen -e screen -x main || urxvt -name screen -e screen -R -S main
Open a terminal (urxvt in this case) to connect to a screen session (named "main") and create the screen session if necessary.
man ls