Ok, so far I've managed to kinda figure this out.
I use xdotool
to issue commands to X through a shell script. It would have to be run on login. (I have to do it manually, but I think thats bc Ubuntu is stupid) The example below switches to tabbed layout, uses dmenu to search for gnome-terminal, opens it, then runs archey
.
xdotool key Alt_L+w
xdotool key Alt_L+d
xdotool type gnome-terminal
xdotool key Return
sleep .5 #small delay to allow terminal to open
xdotool type archey
xdotool key Return
Use xev
to determine what the key codes are. For some unknown reason xdotool key Alt_L+Return
does not open a new terminal...
Obviously change things as needed, for you, but this seems to work.
I hope this might be useful to somebody.