Yes, that works fine.
My problem is slightly different: I press the palm key twice, so it changes the layout for all future keys.
Then, for some reason or another, I am pulled away from the keyboard, and when I come back to the computer, I forget to look at the colors of the keys (I am using functional colors)
I was able to put a timeout that switches the keyboard layout to the default after 10 minutes of inactivity, but the OneShot still has the status set to the other layout, even though the layout itself is the primary.
So, the issue I have is this: the palm key still shows red (indicating that the OneShot thinks that it is active), but the layout is back to the primary. When I press the palm key once after that, it cancels the OneShot. The second click on the same key activates the one-shot for the new layer, but after the first key, it goes back to the primary layer (which is what OneShot means). So you need to do three taps to put it locked on the new layer, but only if you timed out on the second layer.
What I would like to happen is for the layer locking to timeout and revert all keys to the primary mode (including modes like shift, control, and so on) so that if you walk away from the keyboard for an extended (configurable) amount of time, you know that it will be back to a default mode.
Sorry for the confusing description. Let me know if I am not the only one that needs something like that. Ideally, we would like to have an extra parameter, so if that is set to 0, there would not be a timeout, and the keyboard stays in the modified layer for anybody that thinks this is too complex. If you set to a value larger than the SingleShot timeout, that would be how long you have between key presses before the layout reverts. Not sure what would be correct syntax if you set the double-