LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-29-2011, 12:53 AM   #1
Shao Lung
Member
 
Registered: Apr 2011
Posts: 71

Rep: Reputation: 0
keyboard mapping file


Here is an interesting question where do I find the keyboard file for example
/etc/X11/xkb/symbols
has a reference for all the number pad and page uppage down end and so on.

Code:
xkb_symbols *overla1*{
  // begin *keypad* section
  key <kp7> {        [KP_Home           ], overlay1=<k07  };
  key <kp8> {        [KP_Up             ], overlay1=<k08> };
etc.. you get the idea

I would like to know where to find the file for standard keyboard basic letters and so on.

Thanks in advance. I am sure it is all run on code as such, with the exception of ctrl/alt/del which is hard coded in bios,, or at least used to be.

thank you in advance.
 
Old 04-29-2011, 04:14 AM   #2
Shao Lung
Member
 
Registered: Apr 2011
Posts: 71

Original Poster
Rep: Reputation: 0
found it .
 
Old 04-29-2011, 04:20 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Where?
 
Old 04-29-2011, 10:50 AM   #4
Shao Lung
Member
 
Registered: Apr 2011
Posts: 71

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zhjim View Post
Where?
/usr/share/X11/xkb/symbols/ca would be the canadian key board configuration

/usr/share/X11/xkb/symbols/pt would be the portugese (sp) key board configuration,, you get the idea.

I thinkill play with the canadian one, cause I use an american keyboard configuration, and well I understand the canadian configuration.

lol Im going to turn it into a leet speak configuration.
If someone beats me to it,share up the code
 
Old 04-29-2011, 01:01 PM   #5
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
w4y 2 90
 
Old 04-29-2011, 03:06 PM   #6
Shao Lung
Member
 
Registered: Apr 2011
Posts: 71

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zhjim View Post
w4y 2 90
7#@~x5 1 72'/
 
Old 04-29-2011, 05:26 PM   #7
Shao Lung
Member
 
Registered: Apr 2011
Posts: 71

Original Poster
Rep: Reputation: 0
ok I marked this as unsolved. I figured since im still working on the project I might as well put all questions regarding keyboard mapping here.
I have fully designed, or redesigned the canadian keyboard configuration.
I have done the following


Code:
 cp /usr/share/X11/xkb/symbols/ca /usr/share/X11.xkb/symbols/ca_back
I am curious, and perhaps a little nervous about trying this, I would hate to mess up my awesome install of slackware.

How do I go about setting my keyboard mapping to use the canadian one.

Is it possible to set up an easy switch between keyboard mapping? I have never done this before, so Hence my question, as I would like to switch back from canadian keyboard mapping to american mapping.

Would anyone like me to post the leet board mapping so they can play with it?

This is the listing of the keyboard mapping changes I have done.
Code:
a=4  b=8  c=(
d=∂  e=£  f=}
g=9  h=#  i=!
j=¿  k=x  l=1
m=M  n=~  o=0
p=q  q=&  r=Я
s=5  t=7  u=µ 
v=√  w=Ш  x=*
y=j  z=2
All thanks in advance.
 
Old 04-29-2011, 05:39 PM   #8
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by shao Lung View Post


I am curious, and perhaps a little nervous about trying this, I would hate to mess up my awesome install of slackware.

How do I go about setting my keyboard mapping to use the canadian one.

Is it possible to set up an easy switch between keyboard mapping? I have never done this before, so Hence my question, as I would like to switch back from canadian keyboard mapping to american mapping.
You can use setxkbmap to change it for the current X session. Since you won't mess any configuration files, the next time you run startx it will use us layout or any other you have chosen.

Code:
setxkbmap -layout us,ca -option group:alt_shift_toggle
This will set two layouts that change with alt+shift, so you can play with your modified canadian and also use the standard us. You can also do it by setting shell aliases for setxkbmap and set single layout.
 
Old 04-29-2011, 06:45 PM   #9
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Rep: Reputation: 16
Avoiding open new topic ihave a problem with my keyboard layout in a fresh slack 13.37 !=64bit.
I cannot add greek layout , following the instructions from :
http://www.linuxquestions.org/questi...13-0-a-751252/ .

I (believe) do all the necessary actions in order to achieve this.

Does any one have any idea????

my 10-keymap.fdi :
Quote:
bash-4.1$ pwd
/etc/hal/fdi/policy
bash-4.1$ ls -al
total 12
drwxr-xr-x 2 root root 4096 Apr 30 01:12 .
drwxr-xr-x 5 root root 4096 Nov 17 00:55 ..
-rw-r--r-- 1 root root 2184 Apr 30 01:14 10-keymap.fdi
bash-4.1$ pico 10-keymap.fdi
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->

<!-- DO NOT EDIT THIS FILE - IT WILL BE OVERWRITTEN ON UPGRADES.
SEE THE "READ THIS" NOTE BELOW FOR INSTRUCTIONS -->

<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keymap">
<append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
</match>

<match key="info.capabilities" contains="input.keys">

<!-- Restore Ctrl-Alt-Bksp Xserver Zapping -->
<merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>

<!-- Edit (as needed) these four lines in the copied fdi file -->
<merge key="input.xkb.rules" type="string">base</merge>
<merge key="input.xkb.model" type="string">evdev</merge>
<merge key="input.xkb.layout" type="string">us,el</merge>
<merge key="input.xkb.options" type="string">grp:alt_shift_toggle,grp_led:scroll,compose:menu</merge>
<merge key="input.xkb.variant" type="string">,extended</merge>

</match>
</device>
</deviceinfo>

<!-- READ THIS FOR CUSTOM KEYBOARD INFORMATION

If you want to add a custom model/layout/variant to X, you will need to COPY
this file to /etc/hal/fdi/policy/ and edit that copy. After editing it to
suit, you will need to leave X, restart the HAL daemon, and start X again.

Here's an example of the four lines from above:
<merge key="input.xkb.rules" type="string">base</merge>
<merge key="input.xkb.model" type="string">evdev</merge>
<merge key="input.xkb.layout" type="string">us</merge>
<merge key="input.xkb.variant" type="string">intl</merge>

Many desktop environments, including KDE and Xfce, have their own methods to
configure keyboard layouts and such if you'd like to use them.

If you prefer to use the "old" way of configuring keyboards (without HAL's
input device hotplugging), then you'll need to add the following lines to
the ServerFlags section of /etc/X11/xorg.conf:
Option "AllowEmptyInput" "false"
Option "AutoAddDevices" "false"
Option "AutoEnableDevices" "false"
You can now edit the Keyboard section of xorg.conf as usual.
-->


 
Old 04-29-2011, 07:12 PM   #10
Shao Lung
Member
 
Registered: Apr 2011
Posts: 71

Original Poster
Rep: Reputation: 0
Code:
setxkbmap -layout us,ca -option group:alt_shift_toggle
thanks for the code, I guess im back to the drawing board..I worked on my ca_back but I got
Code:
error loading new keyboard description
Ill keep plugging away.
 
Old 04-29-2011, 07:44 PM   #11
Shao Lung
Member
 
Registered: Apr 2011
Posts: 71

Original Poster
Rep: Reputation: 0
Alright my typing sux,,, i made a few errors in the ca file,,, however i attempted this
Code:
setxkbmap -layout us,ru -option group:alt_shift_toggle
I got no keyboard map switching,, I tried both left alt/shift and right alt/shift, then alternated left alt/ right shift and right alt/ left shift,,, nothing,,,
no russiankeyboard,, after I fixed my typos, it had no problem loading the keyboard file.
 
Old 04-30-2011, 04:44 AM   #12
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by mpregos View Post
Avoiding open new topic ihave a problem with my keyboard layout in a fresh slack 13.37 !=64bit.
I cannot add greek layout , following the instructions from :
http://www.linuxquestions.org/questi...13-0-a-751252/ .

I (believe) do all the necessary actions in order to achieve this.

Does any one have any idea????

my 10-keymap.fdi :
Quote:
Originally Posted by CHANGES_AND_HINTS.TXT
The version of Xorg in Slackware 13.37 will not (in most cases) require an
/etc/X11/xorg.conf file. Input hotplugging is no longer done using hal;
instead, it now uses udev for input device detection and keyboard mapping.
Check the file for instructions.

Quote:
Originally Posted by shao Lung View Post
Alright my typing sux,,, i made a few errors in the ca file,,, however i attempted this
Code:
setxkbmap -layout us,ru -option group:alt_shift_toggle
I got no keyboard map switching,, I tried both left alt/shift and right alt/shift, then alternated left alt/ right shift and right alt/ left shift,,, nothing,,,
no russiankeyboard,, after I fixed my typos, it had no problem loading the keyboard file.
Yeah my fault. I wrote "group" when i should have written "grp". "grp:alt_shift_toggle" is the correct.
 
Old 04-30-2011, 11:27 AM   #13
Shao Lung
Member
 
Registered: Apr 2011
Posts: 71

Original Poster
Rep: Reputation: 0
Sweet that did it,,, I did manage to set my keybaord to russian, just cause, and strange all I got was a bunch of question marks...Some of the symbols I use are giving me question marks etc
∂ Я µ √ Ш
Code:
U2202  U42F UB5 U221A U428
I also tried this particular fasion
Code:
partialderivative  Cyrillic_YA mu radical Cyrillic_SHA
the results were the same. I even attempted to copy/paste the symbols in their location and that just made a mess of unreadable garbage, of which the keyboard map could not be loaded.

Any and all solutions are very much appreciated.
Thanks in advance
 
Old 04-30-2011, 11:39 AM   #14
Shao Lung
Member
 
Registered: Apr 2011
Posts: 71

Original Poster
Rep: Reputation: 0
well i think i got it working properly not sure what i did, other then test in terminal, thank you very much
Ш£|| ! 7#!~x ! 907 !7 Ш0Яx!~9 qЯ0q£Я|j ~07 5µЯ£ Ш#@7 ! ∂!∂, 07#£Я 7#£~ 7£57 !~ 7£ЯM!~@|, 7#@~x j0µ √£Яj Mµ)#
 
Old 04-30-2011, 12:17 PM   #15
Shao Lung
Member
 
Registered: Apr 2011
Posts: 71

Original Poster
Rep: Reputation: 0
I Ш@~7.... i want to mark this as solved,, however mpregos has made a post, so i am unsure if I should or not,, my end is solved and I thank everyone for the help. If anyone wants a copy of my keyboard map, by all I would gladly post it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard mapping mendiratta Linux - Laptop and Netbook 0 11-27-2007 11:51 PM
Keyboard mapping BartVG Linux - Newbie 3 09-17-2007 02:25 PM
keyboard mapping minike Slackware - Installation 4 09-01-2004 02:48 PM
which conf file to edit for mapping keyboard csvke Linux - Newbie 2 02-25-2004 02:47 PM
X and keyboard mapping krajzega Slackware 1 02-24-2004 07:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:51 AM.

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