Can I bind keys conditionally, based on the container layout?
I'd like to bind Super+J and Super+K to cycling through tabs in a tabbed container, but maintain the function of Super+J and Super+K for focusing containers that aren't tabbed. So basically it's something like this (pseudo code):
if the layout of the currently focused container is tabbed:
bind Super+J to focus right
bind Super+K to focus left
otherwise:
bind Super+J to focus down
bind Super+K to focus up
Is there a way to do this? Basically I'd like to have the bindings that worked for stacked layouts, but maintain the appearance of tabbed layouts.