I work from home too and find that if I'm going to get anything done the cats have to be away from me. Generally, they sleep in the back of the house. I'm never on my computer for 18 hours so I can leave them there while I work but if I ever have to work for a long time I just give them breaks every so often. They run for a while and I make a new drink, use the bathroom, whatever until they're ready to go back to sleep.