LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-18-2007, 06:57 AM   #1
scriptKid
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
how to change keyboard mapping for console and X ?


Hello

I would like to know how to change the default keyboard mapping for Linux console and X. Let me give you specific example:
I have a non US-keyboard where the "{" symbol is achieved with combination Alt-Gr + "7". I would like to change the keyboard mapping in a way that, besides this combination, the same symbol "{" is generated with the combination Alt_L + Shift + "7".
I need this feature because recently I have purchased a Mac computer that, as you know, doesn't have the Alt-Gr key. To work I frequently connect to a Linux workstation through VNC and typing Alt_L + Shift + "7" does not produce the "{" that I need.

Thanks very much in advance
 
Old 07-18-2007, 01:51 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
Im not sure if its possible to use key sequences, but kbd is what is used to select keymaps for the console. As for X, its entirely independent from the base OS, but it provides xmodmap, which can be used to modify keyboard and mouse bindings. In X, more complex input methods do exist for internationalization, so im sure they support key sequence bindings if xmodmap doesn't.
 
Old 07-20-2007, 08:31 PM   #3
scriptKid
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Is kbd available from the user shell ? I don't find such command.
 
Old 07-20-2007, 09:14 PM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
kbd is a project/package, in it, loadkeys allows you use load keyboard mappings, tho, im also sure there is also a command to bind single keys, if not a option.

according to gentoo, its homepage is on: http://freshmeat.net/projects/kbd/ (ok, so it doesn't have a homepage apparently).

list of commands it comes with:

/usr/bin/dumpkeys
/usr/bin/openvt
/usr/bin/showkey
/usr/bin/setfont
/usr/bin/showconsolefont
/usr/bin/setleds
/usr/bin/setmetamode
/usr/bin/kbd_mode
/usr/bin/chvt
/usr/bin/deallocvt
/usr/bin/psfxtable
/usr/bin/kbdrate
/usr/bin/fgconsole
/usr/bin/getkeycodes
/usr/bin/setkeycodes
/usr/bin/resizecons
/usr/bin/mapscrn
/usr/bin/loadunimap
/usr/bin/unicode_start
/usr/bin/unicode_stop
/usr/bin/psfaddtable
/usr/bin/psfgettable
/usr/bin/psfstriptable
/bin/loadkeys
/bin/setfont

that might help.

Last edited by SciYro; 07-20-2007 at 09:18 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
change keyboard layout in console danielfisica Slackware 14 03-08-2021 11:55 AM
Console keyboard mapping not right for Emacs (Alt/Meta problem) Randux Slackware 2 03-30-2006 06:21 AM
Keyboard mapping cdhjrt Linux - Software 5 11-03-2005 04:29 PM
keyboard mapping minike Slackware - Installation 4 09-01-2004 02:48 PM
X and keyboard mapping krajzega Slackware 1 02-24-2004 07:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration