qmk_firmware
qmk_firmware copied to clipboard
How to momentarily activate a layer with the right modifiers?
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
This is currently a limitation of QMK. From the documentation
LM(layer, mod)
- Momentarily activates layer (likeMO
), 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 ofMOD_
constants instead ofKC_
).
You can checkout my PR for right hand modifier support in LM: https://github.com/qmk/qmk_firmware/pull/13085
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.
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]