Dwmstatus: add restart option
Remove code duplication