Re: 2.3.2_rc5
Re: 2.3.2_rc5
- Subject: Re: 2.3.2_rc5
- From: "Zulli, Louis P" <email@hidden>
- Date: Wed, 31 Dec 2008 09:37:41 -0500 (EST)
I think there's another problem here. When the Key Repeat Rate in System Preferences is at its lowest setting, or at the setting just above that one, the division into 67 in your script yields 0, which is not a valid value for xset.
It may be easier for those users who care about repeat rates to fiddle with xset on their own!
----- Original Message -----
From: "Harald Hanche-Olsen" <email@hidden>
To: email@hidden
Sent: Wednesday, December 31, 2008 8:53:17 AM GMT -05:00 US/Canada Eastern
Subject: Re: 2.3.2_rc5
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden