modified for herbstluftwm