2024-01-03  2024-09-18    104 字  1 分钟

修改键盘重复频率和延迟

XServer startup options

As alternative to this tool, you can set defaults for the X Server at startup.

For the keyboard repeat rate:

/etc/X11/xinit/xserverrc

1X -ardelay 200 -arinterval 30  # (interval is 1000/rate_in_hz)

For this to configure, you need the privileges to edit X launch properties (probably in your login tool like lightdm).

XServer configuration file

XServer since version 21.1.0 supports the option AutoRepeat. Basically you need an xorg config section like this (the second value again 1000/rate_in_hz):

/etc/X11/xorg.conf.d/

1Section "InputClass"
2    Identifier "system-keyboard"
3    MatchIsKeyboard "on"
4    Option "AutoRepeat" "200 20"
5EndSection

除另有声明外本博客文章均采用 知识共享 (Creative Commons) 署名 4.0 国际许可协议 进行许可转载请注明原作者与文章出处