Operational and environmental conditions regulate the frictional behavior of two-dimensional materials.