I have the following setup:
How can I connect the liftarm to the stacked bricks? The holes have different distances, so I can't just use black pins. Any suggestions?
Put two plates between each layer of Technic bricks and the holes will align.
This technique was used commonly in studded Technic sets. Here's a page from the instructions for 8042 where you can see this used in several different places: