Increase your awareness of frustration leaks. Behind many a great undertaking, there is a person who is pissed-off at the way things are. Dissatisfaction is a great driving force for change which can and should be channeled towards greatness. Hence, any good working environment helps focus this frustration on the right things.
A bad working environment does just the opposite; it makes us get all worked up over anything that enters the sphere of frustration, instead of distinguishing frustration that drones from frustration that drives. Your ideal work place should seek to correct this.
Essentially, engineer your work place to direct negativity to the product and not the productive.