If your dog is barking to get your attention you could do two things: (1) Make sure it never ever works. Eventually he’ll try something else. (2) Teach him to do something else to get your attention, and make sure that it nearly always works. Maybe sit? Or wave. That could be cute. But for quite some time you’d have to drop everything and pay attention at the cue to reinforce the new “hey! look at me” behavior. Operant Conditioning is about the animal “operating” on his environment. It’s really about them training us. So let him train you to give him attention on a less annoying cue!