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

Set key repeat rate and key delay #2321

Closed
mb720 opened this issue Jul 21, 2018 · 1 comment
Closed

Set key repeat rate and key delay #2321

mb720 opened this issue Jul 21, 2018 · 1 comment

Comments

@mb720
Copy link

mb720 commented Jul 21, 2018

Hi and thanks a lot for Sway!

I've figured out that I can set the key delay rate and the key repeat rate using

export WLC_REPEAT_RATE=100
export WLC_REPEAT_DELAY=250

in .bashrc. Those environment variables are documented here.

Browsing Sway's source code, I saw that include/sway/config.h defines

int repeat_delay;
int repeat_rate;

This made me hope to be able to set those values for my keyboard in ~/.config/sway/config using

input "1:1:AT_Translated_Set_2_keyboard" {
    repeat_rate 100
    repeat_delay 250
}

This doesn't have an effect when reloading Sway's configuration, though.

My question is whether it's possible to set the key repeat rate and the key delay other than using wlc's environment variables.

Thanks!

@RyanDwyer
Copy link
Member

The code you're looking at is the alpha-1.0. You're running sway 0.15, which is in the 0.15 branch.

So for now you'll need to use the environment variables, and when 1.0 is released you'll be able to define it in the config using the example you gave.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants