"...wont shaking the bottle increase the static? Isn't the charge from friction between the bottle contents and the bottle?..."
Yes, shaking the lye flakes/pellets in their plastic storage container will change their static electrical charge. But that may not be a Bad Thing. What if the shaking alters the charge on the lye particles so they are attracted to the other plastic container you are pouring the lye into, rather than be repelled from that container?
It's very dry here in the midwestern US -- 25% relative humidity in my house today -- so if lye bits were inclined to fly around, they would have plenty of excuses to do so. When making soap this weekend, I shook my lye container vigorously with the goal of breaking up some chunks. I didn't do anything special to control static ... but I didn't get any fly-away bits when pouring my lye beads.
I didn't think too much of it at the time -- I notice the static when it's a problem, but I pretty much forget about it when it's not ... until it is a problem yet again.
When I read Earthen Step's tip, the memory came back of two batches of lye beads poured with nary a fly away. Now I'm really keen to verify this idea. Good excuse to make more soap!
A tip from the chem lab -- If you want to try the shake method, check that the cap is firmly screwed in place before you shake AND hold a couple of fingers over the cap as you shake. Caps have been known to fly off or loosen. If it's pancake batter you're shaking up, that's one thing. Lye is another.