1979 AMC 304 Rough idle.
Torxhead
Always Off-Roading Jeeper
It really sounds like the ignition control module has given up. The goop oozing out and the overheating icm pretty much give it away. I am sure it runs better when you first start it up also. When the pickup coil in the distributor gives up it runs crappy also. You have a number of choices for a repair, I would suggest not buying one of those cheap versions of the icm and the ground wire for the icm is the black wire that goes into the distributor and a better place for it to go would be directly to the battery negative post. A poorly grounded icm will not last long.