热门标签 | HotTags
当前位置:  开发笔记 > 运维 > 正文

技巧分享Fedora下禁用触摸板

你会不会在Fedora下有这样的经历呢?当你正在敲代码时,一不小心碰到触摸板了,结果鼠标乱飘。使用syndaemon就可以免去你的烦恼了,syndaemon可以在你敲击键盘后两秒内屏蔽触摸板,以下是syndaemon的manual:Namesyndaemon-aprogramthatmonitorskeyboardactivityanddisablesthetou

你会不会在Fedora下有这样的经历呢?当你正在敲代码时,一不小心碰到触摸板了,结果鼠标乱飘。

使用syndaemon就可以免去你的烦恼了,syndaemon可以在你敲击键盘后两秒内屏蔽触摸板,以下是syndaemon的manual:

Name
syndaemon - a program that monitors keyboard activity and disables the touchpad when the keyboard is being used.

Syntax
syndaemon [-i idle-time] [-d] [-p pid-file] [-t] [-k] [-K]

Description
Disabling the touchpad while typing avoids unwanted movements of the pointer that could lead to giving focus to the wrong window. This program needs SHMConfig "on" in your XOrg/XFree86 Synaptics Touchpad configuration.

Options
-i
How many seconds to wait after the last key press before enabling the touchpad. (default is 2.0s).
-d
Start as a daemon, ie in the background.
-p
Create a pid file with the specified filename. A pid file will only be created if the program is started in daemon mode.
-t
Only disable tapping and scrolling, not mouse movements, in response to keyboard activity.
-k
Ignore modifier keys when monitoring keyboard activity.
-K
Like -k but also ignore Modifier+Key combos.
Environment Variables
DISPLAY
Specifies the X server to contact.
Caveats
It doesn't make much sense to connect to a remote X server, because the daemon will then monitor the remote server for keyboard activity, but will disable the touchpad on the local machine.

Authors
Peter Osterlund .

This man page was written by Mattia Dongili
See Also
synclient(1), synaptics(5)

将syndaemon放入/etc/X11/xinit/xinitrc-common里就可以了。 


推荐阅读
author-avatar
mobiledu2502920327
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有