From sous- + merde, literally “subshit”.
Originally Parisian slang, attested since at least 1878 in the sense "moins-que-rien; despicable work; man of absolute incapacity".
sous-merde f (plural sous-merdes)