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 10:27:00 -0500 (EST)
Thanks, Harald, for the
20-xset-rate.sh script. Seems to work nicely now, and it should make the X11 experience a bit simpler for those "average" users.
----- Original Message -----
From: "Harald Hanche-Olsen" <email@hidden>
To: email@hidden
Sent: Wednesday, December 31, 2008 9:53:56 AM GMT -05:00 US/Canada Eastern
Subject: Re: 2.3.2_rc5
+ "Zulli, Louis P" :
> 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.
Duh. I should have seen that.
> It may be easier for those users who care about repeat rates to
> fiddle with xset on their own!
It may be easier (for us), but taking the easy way out at the expense
of users is not the Mac way. Of course, we must not take away the
user's ability to override our choices, so our script needs to come
before /usr/X11/lib/X11/xinit/xinitrc.d/98-user.sh - I have given the
updated attachment a name to reflect this.
- 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_KeyRepeat -gt 67 ]; then pref_KeyRepeat=67; 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
References: | |
| >Re: 2.3.2_rc5 (From: Harald Hanche-Olsen <email@hidden>) |