for turning compositing on/off you could, idk, write a script to start those programs like
Code:
#!/bin/sh
however_you_start_compton
firefox
however_you_stop_compton
ofc the problem there comes when one window exits but the other one is still running
deal with it with a temporary file that, idk, does reference counting or something
as for starting programs maximized i assume you are running openbox
openbox can do that, see
http://askubuntu.com/questions/27583...hrough-ob-menu
for further scripting see wmctrl, xdotool and xwininfo
and the openbox config for keyboard shortcuts