Prev | Current Page 170 | Next

Chris Tyler

"X Power Tools"


To change the acceleration parameters, use the m subcommand of xset; for example,
to set an acceleration factor of 5 and a threshold of 4:
$ xset m 5 4
To reset to the default values:
$ xset m
KDE and GNOME each provide their own tools for setting the mouse
acceleration, which adjust the same two parameters.
6.8 Playing with the Lights
Most keyboards have LEDs indicating NumLock, CapsLock, and ScrollLock status.
This is useful information, but most users leave NumLock on and CapsLock off, and
never do anything with ScrollLock, so may be more useful to use the LEDs to display
other information.
In order to use the keyboard LEDs for other information when using
the X.org server and the XKB extension, you will need to enable control
of the LEDs from clients. Include this entry in the keyboard
InputDevice section of the server configuration file, specifying the list
of LEDs you wish to control in the last argument:
Options "Xleds" "1 2 3"
Recent versions of the X.org server do not permit control of LEDs 1
and 2 (NumLock and CapsLock). Only LED 3 (ScrollLock) can be
altered.
The LEDs are turned on or off using the led subcommand of xset:
$ xset led # all controllable LEDs on
$ xset -led # all controllable LEDs off
$ xset led 3 # LED 3 on (ScrollLock)
$ xset -led 3 # LED 3 off
Here is a simple script to light the ScrollLock LED whenever you have email:
#!/bin/bash
#
# mailled :: light the scroll lock LED when we have mail
#
while sleep 1
do
6.


Pages:
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182