diff options
author | shtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2> | 2008-02-03 22:36:30 +0000 |
---|---|---|
committer | shtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2> | 2008-02-03 22:36:30 +0000 |
commit | 861f8cead70c147965577fc985d9ccd74161e132 (patch) | |
tree | 5ae8466b64ed2df9046dfc7e2a32a05a743d8828 /external_kbd.sh | |
parent | 68ede1f82acced4b71542f063cde3aba434758d7 (diff) |
[scripts] Keyboard configuration script
git-svn-id: svn+ssh://scm.narf.ssji.net/svn/shtrom/scripts@117 1991c358-8f32-0410-a49a-990740bdf4c2
Diffstat (limited to 'external_kbd.sh')
-rwxr-xr-x | external_kbd.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/external_kbd.sh b/external_kbd.sh new file mode 100755 index 0000000..13d5075 --- /dev/null +++ b/external_kbd.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# $Id$ +# Reconfigure an iBook's keyboard mapping for use with a standard PC keyboard +# instead of the tweaked version + +case $1 in + on) + xmodmap -e "keycode 108=KP_Enter" + sudo sysctl -w dev.mac_hid.mouse_button_emulation=0 + ;; + off) + xmodmap -e "keycode 108=ISO_Level3_Shift" + sudo sysctl -w dev.mac_hid.mouse_button_emulation=1 + ;; +esac |