Clarification: > tl;dr: Your client is in the "last or only frame on a tag" when > > herbstclient attr clients.focus.parent_frame.index > returns a value that matches regex > > 1* I was referring to a full-match here, or "^1*$".