[英]How to change reaction time and typing speed on holding a key in suckless dwm?
在源代码中必须有一些函数或变量,但我找不到它,我什至不知道如何用谷歌搜索它
Changing the speed of a keypress is handled at the level of the Xorg server.更改按键速度是在 Xorg 服务器级别处理的。 The
xset
command is what you are looking for. xset
命令就是你要找的。
The r
option controls the autorepeat. r
选项控制自动重复。 Invoking with -r
, or r off
, will disable autorepeat, whereas r
, or r on
will enable autorepeat.使用
-r
或r off
调用将禁用自动重复,而r
或r on
将启用自动重复。 If the server supports the XFree86-Misc extension, or the XKB extension (which it does), then a parameter of rate
is accepted and should be followed by zero, one or two numeric values.如果服务器支持 XFree86-Misc 扩展或 XKB 扩展(它支持),则接受
rate
参数,并应后跟零、一或两个数值。 The first specifies the delay before autorepeat starts and the second specifies the repeat rate.第一个指定自动重复开始之前的延迟,第二个指定重复率。
For example, I have this command run every time I login (in .xinitrc
):例如,我每次登录时都会运行此命令(在
.xinitrc
):
xset r rate 300 50
This increases the autorepeat on holding all keys.这增加了按住所有键的自动重复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.