Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Layer Lock #52

Closed
manna-harbour opened this issue Nov 30, 2021 · 5 comments
Closed

Add Layer Lock #52

manna-harbour opened this issue Nov 30, 2021 · 5 comments

Comments

@manna-harbour
Copy link
Owner

manna-harbour commented Nov 30, 2021

See #15 for the original discussion.

@manna-harbour
Copy link
Owner Author

Current layer lock is not supported in ZMK, see zmkfirmware/zmk#1299. Opposite layer lock can still be used.

@manna-harbour
Copy link
Owner Author

Layer lock for current and opposite layers has been added. See https://github.com/manna-harbour/miryoku/tree/master/docs/reference#additional-features.

@manna-harbour
Copy link
Owner Author

Layer lock and other Additional Features now require a double tap to activate to prevent accidental activation.

@maxesser1776
Copy link

@manna-harbour can you point me to the source code for the layer lock activation I'm trying to implement this in my own keymap thank you!!!

@manna-harbour
Copy link
Owner Author

@maxesser1776 Double tap to activate is a tap dance. The Miryoku ZMK Implementation is here: https://github.com/manna-harbour/miryoku_zmk/blob/master/miryoku/miryoku_double_tap_guard.dtsi, https://github.com/manna-harbour/miryoku_zmk/blob/master/miryoku/miryoku_double_tap_guard.h.

That implementation is very indirect. For your own keymap refer to the docs and just use the behavior directly without any cpp macros: https://zmk.dev/docs/keymaps/behaviors/tap-dance.

For the layer lock itself see https://github.com/manna-harbour/miryoku_zmk?tab=readme-ov-file#no-current-layer-lock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants