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

Problem with mod-morph and volume media keys #2329

Open
Ciebiada opened this issue Jun 10, 2024 · 5 comments
Open

Problem with mod-morph and volume media keys #2329

Ciebiada opened this issue Jun 10, 2024 · 5 comments

Comments

@Ciebiada
Copy link

Hi Guys!

I want to bind LALT + G to C_VOL_UP

I have this, which works with everything else, but not in this case

behaviors {
        vol_up: volume_up {
                compatible = "zmk,behavior-mod-morph";
                #binding-cells = <0>;
                bindings = <&kp G>, <&kp C_VOL_UP>;
                mods = <(MOD_LALT)>;
        }
}

Instead of increasing volume my Mac opens volume settings 🤯. When I bind C_VOL_UP to a key on a layer it works just fine.

Am I missing something?

@caksoylar
Copy link
Contributor

Do you have Karabiner Elements installed?
image

@Ciebiada
Copy link
Author

Ciebiada commented Jun 11, 2024

I've had it installed in the past, but uninstalled some time ago. Do you think it could have a permanent effect, even after it is uninstalled and not running?
Also I have a bunch of other mod-morphs defined e.g. LGUI + f -> right arrow. Which works fine, sending just right arrow.

@caksoylar
Copy link
Contributor

It shouldn't, no. What key combination is supposed to open the volume settings? (I don't own a Mac.)

@Ciebiada
Copy link
Author

Ciebiada commented Jun 11, 2024

Apparently it’s option + volume. Which makes sense. So it looks like the code I posted is still sending LALT mod for some reason

@caksoylar
Copy link
Contributor

This might be similar issue: #1685 (comment)

I suspect the mod masking of mod-morphs don't work with keycodes from the consumer usage page like C_VOL_UP.

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

2 participants