Author Topic: Key Mapping  (Read 4757 times)

LordDavon

  • Full Member
  • ***
  • Posts: 161
    • View Profile
    • http://
Key Mapping
« on: January 30, 2004, 04:34:22 pm »
Sash,

How are you working the Function key in this environment.  Any way we can map Function-Calendar to F1 and Function-Address to F2?  I think this would make things a bit easier.

LD

Pentad

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • http://
Key Mapping
« Reply #1 on: January 31, 2004, 09:17:17 am »
Hey David!

Drop me an email: mark@mmhart.com

I think I\'ve got the wrong email for you.

LordDavon

  • Full Member
  • ***
  • Posts: 161
    • View Profile
    • http://
Key Mapping
« Reply #2 on: January 31, 2004, 10:11:20 am »
Ok.  Sent.  ;-)

cider101

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://esbrowers.sourceforge.net
Key Mapping
« Reply #3 on: February 01, 2004, 11:59:04 am »
i have a problem that the keyboard works  as expected in the
a/x-term but has a completly different layout in abiword and syshleed.
it looks like two different xmodmaps are applied. anybody knows
what could cause that problem ?

thx in advance
cider

edit:
hmmm.. very odd... my Z doesn\'t start with xdm but is greeting me
with a comand line login (don\'t know why...). if I start
a)xinit then I have the problem described above
b)xdm and login again, everythings seems to be ok...

just curios what the probem might be. well, i guess i need to read a bit
more about xdm

chuckr

  • Newbie
  • *
  • Posts: 35
    • View Profile
Key Mapping
« Reply #4 on: February 01, 2004, 02:37:54 pm »
Maybe some of the things I\'ve discovered in doing my own keymapping might help you, so I\'ll pass along what I found out.  The keymapping is done via an app called xkeymouse, you can find it via google.  The doc file in there descrives perfectly how to set up the /etc/xkmc file for mapping, the only thing that\'s in your way is how to refer to the \"Fn\" key in the xkmc file.  That bothered me for a while until I found the \"xev\" program, which lists X events, and you run that, and if you press teh Fn key while it\'s running (giving you an X event for key press and key release of that key) you find out that it\'s named Mode_switch, and that word works perfectly well with xkmc.

Some apps might possibly ignore X mapping.  I don\'t know enough to know why, but i do know for a fact that for myself, when you\'re outside of the Xserver, you can \'t use the xkmc mapping anymore.  You need the loadkeys and dumpkeys programs, which I compiled, and you want to look at zaurus.spy.org, it\'s got my name on it. absentia stuck my binaires o n his machine for everyone.  You can capture the presetn setup via \"dumpkeys ]keymapfile\", then edit keymapfile, finally reload it via \"loadkeys keymapfile\".  That worked for me.

I hope this is helpful.

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
Key Mapping
« Reply #5 on: February 01, 2004, 05:06:27 pm »
Well I wrote a complete xmodmap for Sashz from scratch (he doesn\'t appear to have used it yet) which you can find at http://foxdie.timduru.org/zaurus/x11_stuff...f/corgi.xmodmap which includes F key bindings. I wrote this file to be easy to follow, just open it in vim or something

The only problem was that Sashz had set it up in recent X11 ROM versions so that pressing a number key or fn+number or whatever would try and group icons, a feature that is definately not needed.

Feel free to make use of this file but credit my good work

There\'s also a xkmc file ( http://foxdie.timduru.org/zaurus/x11_stuff/xkmc ) in the same folder with a couple of modifications like keyboard mouse movement and clicking, quick shortcut to spawn a terminal and the rox-session window etc. Note that this will not work completely as there are some script files missing. I am working on a series of scripts to manage brightness, mouse pointers etc.

TAKE A LOOK!
Jason "Foxdie" Gaunt
HTC Universal G4 with 2GB SD card running Debian Titchy Linux
[img]http://trackmygps.co.uk/signatures/foxdie.gif\" border=\"0\" class=\"linked-sig-image\" /]
Click image to view my GPS tracker
Follow me on Twitter: @jasongaunt

LordDavon

  • Full Member
  • ***
  • Posts: 161
    • View Profile
    • http://
Key Mapping
« Reply #6 on: February 02, 2004, 12:19:17 am »
Foxdie:

Thanks for the info.  I really like your modifications.  I would like to ask why you kept the two keys to the left of the minus unmapped instead of making them control_l and alt_l?  Is there an issue with these keys if I move them on my unit?

LD

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
Key Mapping
« Reply #7 on: February 02, 2004, 03:04:58 am »
The leftmost button was mapped as mouse1 (left mouse button) full time, the right one was mapped to toggle which mouse button is simulated when you click the screen (along with a popup screen message which tells you which one is currently active). This was done in the xkmc but because I haven\'t submitted the scripts here yet it won\'t work.

I\'ll talk to Sashz on ICQ while I\'m at work today and sort it out.
Jason "Foxdie" Gaunt
HTC Universal G4 with 2GB SD card running Debian Titchy Linux
[img]http://trackmygps.co.uk/signatures/foxdie.gif\" border=\"0\" class=\"linked-sig-image\" /]
Click image to view my GPS tracker
Follow me on Twitter: @jasongaunt

cider101

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://esbrowers.sourceforge.net
Key Mapping
« Reply #8 on: February 02, 2004, 03:39:04 am »
@chuckr
thx for the info. i realy need to have a closer look how X, xmodmap, xdm and xkeymouse
to understand how those app work together  :shock:

fu-ga-zi

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • http://
Key Mapping
« Reply #9 on: February 02, 2004, 11:44:13 am »
@Foxdie:

Jason, thanks for the work on the two modifier files, there were a few key strokes which I took over into my config (not all, as I need the German Umlauts and the EURO sign from time 2 time).

The only feature I still miss, which is available in the keyhelper application is to set Shift and Fn into a sticky mode, so that I can type Shift and Z with my left thumb one after the other and still get a capital Z (or Fn + Z) respectively.

Did you come across anything like this when you were investigating the key mappings?

Thanks

Peter

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
Key Mapping
« Reply #10 on: February 02, 2004, 01:40:46 pm »
Nope sorry I didn\'t.
Jason "Foxdie" Gaunt
HTC Universal G4 with 2GB SD card running Debian Titchy Linux
[img]http://trackmygps.co.uk/signatures/foxdie.gif\" border=\"0\" class=\"linked-sig-image\" /]
Click image to view my GPS tracker
Follow me on Twitter: @jasongaunt

pgas2

  • Newbie
  • *
  • Posts: 31
    • View Profile
Key Mapping
« Reply #11 on: February 02, 2004, 02:13:08 pm »
for sticky keys you can use the accessx functionality ie :
* edit the file /etc/X11/xdm/Xservers
* change the line
   :0 0 local /usr/X11R6/bin/X -nolisten tcp -kbd
 to
   :0 0 local /usr/X11R6/bin/X -nolisten tcp +kbd +accessx
* restart X (exit the wm or reboot)

Now press 5 times shift quickly : you  have entered access mode, shift and Fn are sticky.

look up for accessx for more information

fu-ga-zi

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • http://
Key Mapping
« Reply #12 on: February 02, 2004, 03:54:26 pm »
@pgas:

Thanks a lot! I will try that one.

Regards

Peter

gromituk

  • Full Member
  • ***
  • Posts: 207
    • View Profile
Key Mapping
« Reply #13 on: July 30, 2004, 08:28:36 am »
It would be nice to be able to get the £ (pound - not # which Americans call pound but is really hash :-) symbol as well as the Euro, €.