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 a QMK-Style Mod-Tap function to internal keyboards. #176

Open
quickj opened this issue Apr 15, 2021 · 0 comments
Open

Add a QMK-Style Mod-Tap function to internal keyboards. #176

quickj opened this issue Apr 15, 2021 · 0 comments

Comments

@quickj
Copy link

quickj commented Apr 15, 2021

I'm trying to implement the Mod-Tap function of QMK on the internal keyboard of my lemp10 described here. Specifically, I'm trying to remap the normal-mode Caps Lock key to produce the left super key on hold and the escape key on tap. My keymap fails to compile this way, but works if I just try to remap to K_ESC.

I filed a support ticket and it was suggested to use a software-side solution using GNOME Tweak Tool; however, the GNOME Tweak Tool doesn't appear to have any settings for either treating Caps as Super on hold and Esc on tap or treating Super as Esc on tap, unfortunately.

I've found a different software-side solution using:

setxkbmap -option caps:super

and

xcape -e 'Super_L=Escape'

but this causes a tapped Super key to generate both Super and Escape which causes the desktop to open the Workspace view in Pop!_OS. I would also prefer a firmware-side implementation because running an extra daemon just feels dirty to me. Even though in a quick test it looks like xcape uses 0.0% CPU and Memory, it's still intercepting every keystroke.

The relevant QMK code appears to be here.
https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/action_tapping.c

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

No branches or pull requests

1 participant