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

Use both control keys to swap layout #819

Open
ddffnn opened this issue Aug 21, 2024 · 0 comments
Open

Use both control keys to swap layout #819

ddffnn opened this issue Aug 21, 2024 · 0 comments

Comments

@ddffnn
Copy link

ddffnn commented Aug 21, 2024

I'm trying to implement behavior just like grp:ctrls_toggle in xkb. I've tried the below config, but can only enter the dvorak layout, that is, I can't get back to the main layout. It looks like composite layers don't work with a layout. Is there any other way to know that dvorak is active so setlayout(main) can be bound instead? Or should togglelayout() exist?

include layouts/dvorak

[ids]
*

[main]
# see https://github.com/rvaiya/keyd/issues/209#issuecomment-1121386837
rightcontrol = rightcontrol

[control]
rightcontrol = setlayout(dvorak)
leftcontrol = setlayout(dvorak)

[control+dvorak]
rightcontrol = setlayout(main)
leftcontrol = setlayout(main)
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