Author Topic: re-mapping keys via xmodmap  (Read 3933 times)

offroadgeek

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
    • View Profile
    • https://www.oesf.org
re-mapping keys via xmodmap
« on: December 10, 2003, 01:08:49 am »
Many thanks to omin0us for showing me how to switch the , / (comma, slash) keys..  here\'s how:

vi /etc/X11/kb/corgi.xmodmap

edit keycode 71 line to read:

keycode 71 = slash comma less less (instead of comma slash less less)

Now I\'m wondering if we can have the two japanese keys (next to FN) mapped to Ctrl and Alt... I think they are keycode 129 and 130 respectively, but I don\'t know the correct syntax to change them.

Any suggestions?

thanks,

offroadgeek

P.S.  omin0us said that he would talk to sash about getting the slash comma changed in the next build...
Search the OESF Wiki
C1000 w/Cacko 1.23 beta (from Streamline) / 760 pdaxrom rc9 / 6000L (thanks Santa's elf!) / 5500 - OZ 3.3.5 / SIMpad SL4
1GB, 256mb SanDisk CF / 2x 1GB, 512mb, 256mb, 128mb SanDisk SD
Ambicom WL100C-CF wifi / Socket 56k CF modem / AmbiCom BT2000-CF (x2)
Pocketop keyboard, Piel Frama case (1000 & 5500), PDAir case (760 & 1000)
sip:536093@fwd.pulver.com
| OESF | ELSI | Zaurus User Group | ZaurusThemes |

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
re-mapping keys via xmodmap
« Reply #1 on: December 10, 2003, 05:53:48 am »
I\'m going to work on those two keys today and see how I can redefine then. Thanks for posting the url to the keycode file though, I was having difficulty finding it.
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

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
re-mapping keys via xmodmap
« Reply #2 on: December 10, 2003, 06:57:05 am »
Okay I\'ve done it (or from what I can see I\'ve done it, pressing the key just left of fn and z suspended a process in true ctrl+z fashion)

[img]http://foxdie.timduru.org/zaurus/x11_keys.jpg\" border=\"0\" class=\"linked-image\" /]

Key 3 is now LEFT CTRL and key 4 is now LEFT ALT

I left keys 1 and 2 still bound to the same as they were before, so they are still LEFT CTRL and LEFT ALT respectively.

Here is the modified file (it also has the slash & comma swap as depicted by offroadgeek above): http://foxdie.timduru.org/zaurus/corgi.xmodmap

Here is the unmodified original file if you ever should need it: http://foxdie.timduru.org/zaurus/corgi.xmodmap.bak

To retrieve these modifications straight to your Zaurus and install please ensure you\'re connected to the Internet, open up a terminal and type in the following:
Code: [Select]
cd /etc/X11/kb/

mv corgi.xmodmap corgi.xmodmap.old

wget http://foxdie.timduru.org/zaurus/corgi.xmodmap

reboot

Alternatively you can edit the file yourself and change the following lines from:
Code: [Select]
keycode 71 = comma slash less less

keycode 129 = grave grave

keycode 130 = NoSymbol

to:
Code: [Select]
keycode 71 = slash comma less less

keycode 129 = Control_L

keycode 130 = Alt_L

It\'s interesting to note that Corgi is one of the OZ\'s names for the C700, I have also submitted an FAQ listing all these devices names, check the \"Unofficial Zaurus FAQ / General\" section soon.
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

offroadgeek

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
    • View Profile
    • https://www.oesf.org
re-mapping keys via xmodmap
« Reply #3 on: December 10, 2003, 10:37:05 am »
ahh... thanks foxdie... I was missing the _L after Control and Alt...   this will just be too cool... now the keyboard layout is near perfect for me!
Search the OESF Wiki
C1000 w/Cacko 1.23 beta (from Streamline) / 760 pdaxrom rc9 / 6000L (thanks Santa's elf!) / 5500 - OZ 3.3.5 / SIMpad SL4
1GB, 256mb SanDisk CF / 2x 1GB, 512mb, 256mb, 128mb SanDisk SD
Ambicom WL100C-CF wifi / Socket 56k CF modem / AmbiCom BT2000-CF (x2)
Pocketop keyboard, Piel Frama case (1000 & 5500), PDAir case (760 & 1000)
sip:536093@fwd.pulver.com
| OESF | ELSI | Zaurus User Group | ZaurusThemes |

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
re-mapping keys via xmodmap
« Reply #4 on: December 12, 2003, 10:16:40 am »
I\'ve been using the fluxbox window manager, but am getting weary of all of the control + 1 ,2 & 3 key strokes. Since I\'ve got the keys right of the Fn key mapped per Foxdie\'s instructions; I\'m wanting to remap the Calendar=mouse left toggle, Address=mouse middle toggle and Mail=mouse right toggle. That way I can toggle the mouse buttons with a single stroke. I don\'t see in the corgi.xmodmap where ctrl + 1, 2 & 3 are assign to mouse buttons. I assume there is some other file where this is set. Can anybody point me in the right direction?

By the way Many thanks to Sash & omin0ous & the Cacko team for their fantastic work!  

Thanks,
Jerry
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF