I’d like to implement layer switching the way window’s “sticky keys” work:
Tapping the mod key would enable the mod layer only until the next key is pressed (oneShot), double tapping the mod key would activate the mod layer until the mod key is pressed again. Here’s what I’ve tried so far. The one shot function works fine, but it does not “lock” when I double tap it.
ifDoubletap final toggleLayer mod
oneShot holdLayer mod
I think that’s because the first tap executes the oneShot holdLayer mod, so the second tap ends up as a tap on that mod layer. I guess the second tap therefore doesn’t execute the macro, thus ifDoubletap never triggers.