"Find something to do or I'll find something for you." That usually worked for me.
I've found that bored dogs are a bigger problem. They sit here staring at me and sigh loudly.