Re: 2.3.2_rc5
Re: 2.3.2_rc5
- Subject: Re: 2.3.2_rc5
- From: Harald Hanche-Olsen <email@hidden>
- Date: Wed, 31 Dec 2008 14:53:17 +0100 (CET)
Argh, syntax errors in the last version of the script.
Why oh why don't I test stuff before posting?
Here is an improved version, which also takes care of the case where
the user has turned off key repeat.
- Harald
pref_InitialKeyRepeat=$(defaults read .GlobalPreferences InitialKeyRepeat)
if [ $? != 0 ]; then pref_InitialKeyRepeat=35 ; fi
pref_KeyRepeat=$(defaults read .GlobalPreferences KeyRepeat)
if [ $? != 0 ]; then pref_KeyRepeat=6 ; fi
if [ $pref_InitialKeyRepeat -le 120 ]
then
xset r rate $((pref_InitialKeyRepeat * 15)) $((67 / $pref_KeyRepeat))
else
xset r off
fi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden