Say I have an XMonad layout that I named "foo" via XMonad.Layout.Renamed.
I've got a keybinding that I would like bound to a different X () depending on the current layout of the focused workspace. For example, something along the lines of:
case () of
() | currentLayoutName == "foo" -> fooAction
| otherwise -> barAction
..but how can I implement currentLayoutName?
Just traverse down the StackSet to the current workspace to the layout description.