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

how to remap super to control+alt but also press super #911

Open
lucas-mior opened this issue Jan 14, 2025 · 1 comment
Open

how to remap super to control+alt but also press super #911

lucas-mior opened this issue Jan 14, 2025 · 1 comment

Comments

@lucas-mior
Copy link

lucas-mior commented Jan 14, 2025

Hello.

Vmware grabs the X keyboard until you press control+alt.
Meanwhile, I need to press the super key for changing workspace (super+1 to super+9), but that doesn't work because it is specific to X, and vmware is grabbing it.
So, I would like to know if it is possible with keyd. Basically I want a config so that when I press the super key, control+alt is automatically pressed, but super is still sent to X.

Thanks.

I've tried the following. It does indeed ungrab the keyboard from vmware, but leftmeta is not working afterwards.

[ids]

*

[main]

meta = macro(leftcontrol+leftalt 100ms leftmeta)
@lucas-mior lucas-mior changed the title how to remap super to control+meta but also press super how to remap super to control+alt but also press super Jan 14, 2025
@lucas-mior
Copy link
Author

lucas-mior commented Jan 14, 2025

Using keyd-application-mapper I found an almost perfect solution, there is a race codition but only when
using from Vmware.

/etc/keyd/default.conf


[ids]

*

[main]

~/.config/keyd/app.conf

[vmware]

meta = command(xdotool key --clearmodifiers control+alt; xdotool keydown --clearmodifiers super; sleep 0.5; xdotool keyup super)

[Vmware]

meta = command(xdotool key --clearmodifiers control+alt; xdotool keydown --clearmodifiers super; sleep 0.5; xdotool keyup super)

~/.config/X11/xinitrc

keyd-application-mapper -d &

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