I'm trying to implement behavior just like grp:ctrls_toggle in xkb. I've tried the below config, but can only enter the dvorak layout, that is, I can't get back to the main layout. It looks like composite layers don't work with a layout. Is there any other way to know that dvorak is active so setlayout(main) can be bound instead? Or should togglelayout() exist?
I'm trying to implement behavior just like
grp:ctrls_toggle
in xkb. I've tried the below config, but can only enter thedvorak
layout, that is, I can't get back to themain
layout. It looks like composite layers don't work with a layout. Is there any other way to know that dvorak is active sosetlayout(main)
can be bound instead? Or shouldtogglelayout()
exist?