For example, it can be difficult to position Wi-Fi antennas optimally. Here is a simple
Linux shell script that, when run in a terminal window, gives audible feedback on
Wi-Fi link quality using the X bell. This lets you know what effect your antenna
adjustments are having without looking at the screen, which is particularly helpful
when you are adjusting an access point in one room to improve reception in another
room??”just turn up the volume on your laptop to maximum and listen as you fiddle:
#!/bin/bash
#
# iwbeep :: beep with a pitch that corresponds to the current
# link quality reported by iwconfig
while true # Loop forever
do
# Get the current link quality from iwconfig
q=$(/usr/sbin/iwconfig 2>&1|sed -n "s/^.*Link Quality:\([0-9]\+\).*$/\1/p")
# Calculate a tone based on the quality. Experiment!
((b= (q * 3 / 2) ** 2 + 100))
# Set the bell tone, display the quality, then sound the bell.
xset b 100 $b
echo -e "$q\a"
done
Warning: this script sounds like a deranged electronic bagpipe player!
It should also be possible to enable a keyclick sound through the PC
speaker using the c subcommand of xset, but this does not appear to
be implemented in X.org.
6.6 Adjusting the Keyboard Repeat Rate
Keyboard repeat is a useful option; it lets you enter a row of dashes, or repeatedly
move the cursor, simply by holding a key down.
Pages:
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179