question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please add Label Name and Sensor Bindings in .keymap

See original GitHub issue

We need label = "LayerName"; for oled display and sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>; for Rotary Encode Also need add dynamic for sensor-bindings Just replace line 100 to 107 in /api/services/zmk/keymap.js

return `
        ${name.replace(/[^a-zA-Z0-9_]/g, '_')} {
	    label = "${name.replace('layer', '')}";
            bindings = <
${rendered}
            >;
	    sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
        };
`
  })

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
LamDVTcommented, Apr 13, 2022

Hi @nickcoutsos Thank you so much for replying to my issues. This is exactly what I was looking for. I will respond if there are any problems.

0reactions
nickcoutsoscommented, Jun 28, 2022

Hi @LamDVT, if you’re still around and using the editor I’ve added support for editing sensor bindings. I don’t have a keyboard of my own with rotary encoders built in so if you end up trying this feature out I’d be interested in knowing how you find the new functionality.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keymap | JetBrains Fleet Documentation
Add the binding by specifying an additional object in the keymap array. The object has to contain key combination and trigger name:.
Read more >
32.4. Customizing Key Bindings
This section describes key bindings, which map keys to commands, and keymaps, which record key bindings. It also explains how to customize key...
Read more >
New Keyboard Shield | ZMK Firmware
New Keyboard Shield. Overview​. This guide will walk through the steps necessary to add ZMK support for a keyboard the uses a (Pro...
Read more >
make local map bindings available through a global prefix
I have already created a tree of my own keymaps with global commands, and it is available on M-SPC . But now I'd...
Read more >
Feature: Encoder layers · Issue #333 · zmkfirmware/zmk - GitHub
Implement a separate set of encoder layers, plus an override of the encoder functions per layer. If &trans is defined then no override...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found