歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 技巧分享 Fedora下禁用觸摸板

技巧分享 Fedora下禁用觸摸板

日期:2017/2/28 16:53:55   编辑:Linux教程

你會不會在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 <[email protected]>.

This man page was written by Mattia Dongili <[email protected]>
See Also
synclient(1), synaptics(5)

將syndaemon放入/etc/X11/xinit/xinitrc-common裡就可以了。

Copyright © Linux教程網 All Rights Reserved