There is a verb "маяться" (the word маятник probably comes from it) and expression "дурью маяться" (to do nothing).