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

Keyd config for layout #852

Open
Azer0s opened this issue Oct 4, 2024 · 1 comment
Open

Keyd config for layout #852

Azer0s opened this issue Oct 4, 2024 · 1 comment

Comments

@Azer0s
Copy link

Azer0s commented Oct 4, 2024

I want my keyd config to apply only in US layout (I simply want to switch y and z) but don't want them switched when I switch to DE layout. Is that possible in keyd?

@nsbgn
Copy link

nsbgn commented Oct 6, 2024

keyd does not know anything about which layout you are using (assuming that you mean by 'layout' the interpretation of keys by your wm/tty).

So, no, but you can probably hack something together: perhaps make a script that listens to changes in current layout to disable/enable keyd, or use something like: y = command(<test layout command> && keyd do y || keyd do z)

However, such hacks seem overkill (and super fragile) for this use case. I've heard from other users with a DE layout (@herrsimon) that they prefer just handling their layout from within keyd, using the layout mechanism.

But to br honest, if it's really only for switching y and z, I'd skip keyd entirely and make a custom XKB layout.

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