Text this: Electron beam relaxation in inhomogeneous plasmas