• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xvfb keyboard configuration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xvfb keyboard configuration


  • Subject: Re: Xvfb keyboard configuration
  • From: Bill Campbell <email@hidden>
  • Date: Thu, 9 Apr 2009 17:02:25 -0700
  • Mail-followup-to: email@hidden

On Thu, Apr 09, 2009, Charlls Quarra wrote:
>
>Hi,
>So, after quite a bit of painful, frustrating search on the intertubes, found that there is something called 'xmodmap'
>basically;
>xmodmap -pke  gives the list of current mappings in a format that is digestible by xmodmap itselfxmodmap <file> will load mappings stored in file
>given this info, its easy to fix it:
>xmodmap -pke > $HOME/.xmodmaprc ; printf ###34m~@~\xmodmap $HOME/.xmodmaprc###34m~@~] > $HOME/fixmyke 777 fixmykeys
>then add fixmykeys or the embedded code directly in the bash startup script

The ``xev'' program is quite useful when figuring out key mappings for
different keyboards.  I have attached my ~/.Xmodmap file that I use to map
the keys of my Microsoft ``Natural'' keyboard, in particular getting the
numeric keypad to work properly with python ncurses applications.

The emacs mappings are something that I found on the Net, but have (a)
never gotten my fingers around emacs as they work automatically in vi(m)
after 27 years of practice (can we start an editor war :-).

Bill
--
INTERNET:   email@hidden  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:          (206) 236-1676  Mercer Island, WA 98040-0820
Fax:            (206) 232-9186  Skype: jwccsllc

The budget should be balanced, the Treasury should be refilled, public
debt should be reduced, the arrogance of officialdom should be
tempered and controlled, and the assistance to foreign lands should be
curtailed lest Rome become bankrupt. People must again learn to work,
instead of living on public assistance. -- Cicero - 55 BC
! keypad mappings for Apple with Microsoft Natural keyboard
keycode 91 = 1
keycode 90 = 0
keycode 92 = 2
keycode 93 = 3
keycode 94 = 4
keycode 95 = 5
keycode 96 = 6
keycode 97 = 7
keycode 99 = 8
keycode 100 = 9
keycode 73 = period
keycode 83 = slash
keycode 75 = asterisk
keycode 86 = minus
keycode 77 = plus
keycode 84 = Return
! Microsoft Ergonomic 4000
keycode 89 = equal
! emacs mapping keys to Alt
clear mod2
keycode 63 = Meta_L
keycode 66 = Meta_L
add mod2 = Meta_L
 _______________________________________________
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: Xvfb keyboard configuration (From: Charlls Quarra <email@hidden>)

  • Prev by Date: Re: Xvfb keyboard configuration
  • Next by Date: Re: Still full screen issues (2.3.3_rc4)
  • Previous by thread: Re: Xvfb keyboard configuration
  • Next by thread: Re: Xvfb keyboard configuration
  • Index(es):
    • Date
    • Thread