implemented the idea presented by Sander for dwm target