qmk_firmware icon indicating copy to clipboard operation
qmk_firmware copied to clipboard

How to momentarily activate a layer with the right modifiers?

Open grumagargler opened this issue 2 years ago • 2 comments

Hi, when I use LM(MyLayer, MOD_RCTL) the layer is activated with the left control, not the right one. I tried to play with #define LAYER_STATE_8BIT in my config.h, alas, nothing works.

System Information

Keyboard: Cantor (42-keys split) keyboard. Operating system: Linux Mint 20.3 Cinnamon qmk doctor output:

Ψ QMK Doctor is checking your environment.
Ψ CLI version: 1.0.0
Ψ QMK home: /home/dmitry/qmk_firmware
Ψ Detected Linux.
Ψ Git branch: master
Ψ Repo version: 0.17.0
⚠ The official repository does not seem to be configured as git remote "upstream".
Ψ All dependencies are installed.
Ψ Found arm-none-eabi-gcc version 9.2.1
Ψ Found avr-gcc version 5.4.0
Ψ Found avrdude version 6.3-20171130
Ψ Found dfu-util version 0.9
Ψ Found dfu-programmer version 0.6.1
Ψ Submodules are up to date.
Ψ QMK is ready to go, but minor problems were found

grumagargler avatar Aug 30 '22 17:08 grumagargler

This is currently a limitation of QMK. From the documentation

LM(layer, mod) - Momentarily activates layer (like MO), but with modifier(s) mod active. Only supports layers 0-15 and the left modifiers: MOD_LCTL, MOD_LSFT, MOD_LALT, MOD_LGUI (note the use of MOD_ constants instead of KC_).

lesshonor avatar Aug 30 '22 18:08 lesshonor

You can checkout my PR for right hand modifier support in LM: https://github.com/qmk/qmk_firmware/pull/13085

precondition avatar Sep 09 '22 19:09 precondition

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs. For maintainers: Please label with bug, in progress, on hold, discussion or to do to prevent the issue from being re-flagged.

github-actions[bot] avatar Dec 09 '22 02:12 github-actions[bot]

This issue has been automatically closed because it has not had activity in the last 30 days. If this issue is still valid, re-open the issue and let us know. // [stale-action-closed]

github-actions[bot] avatar Jan 09 '23 02:01 github-actions[bot]