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

Can't map a key to control+shift #775

Open
HazemHussien1 opened this issue Jun 25, 2024 · 1 comment
Open

Can't map a key to control+shift #775

HazemHussien1 opened this issue Jun 25, 2024 · 1 comment

Comments

@HazemHussien1
Copy link

I need to remap the letter a to type a when tapped and map it to CTRL+ SHIFT when held, i tried these solutions and none worked

leftcontrol = leftcontrol
leftshift = leftshift
control = control
shift = shift

# first try
a = overload(C-S, a)

# second try
a = overload(control+shift, a)

none of these work, please keep in mind that i mapped control to capslock later in the file as well (not sure if that makes a difference so here's my config

[ids]

*

[main]

# Maps capslock to escape when pressed and control when held.
capslock = overload(control, esc)
; = overload(control, ;)

leftcontrol = leftcontrol
leftshift = leftshift
control = control
shift = shift
compose = down

rightalt = rightalt
rightalt = overload(alt, left)

rightshift = rightshift
rightshift = overload(shift, up)

rightcontrol = rightcontrol
rightcontrol = overload(control, right)

leftcontrol = leftcontrol
leftcontrol = capslock


@nsbgn
Copy link

nsbgn commented Jun 26, 2024

Try defining a custom layer with the associated modifiers:

[main]
a = overload(controlshift, a)

[controlshift:C-S]

(That said, you will probably find you'll need something like a = lettermod(controlshift, a, 50, 100) or one of the other overload variants to avoid misfires)

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