And usually if a pet comes to lay on your work shit (or when you're gaming), including your keyboard or comparable, it means they need more attention than you're giving them. At that point you give them their attention and they'll leave you to your shit, it shouldn't take ALL THAT long of your time; you can sacrifice 30mins, if your pet demands that much (1 of dad's cats, a female, demands around 20-30min scratching every day, but only once).
<3