LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 08-30-2009, 10:09 AM   #1
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 6,719
Blog Entries: 2
Thanked: 213
keyboard layout sw 13.0


[Log in to get rid of this advertisement]
Just a note, because I use the dvorak keyboard layout and on sw 13.0 'xorgsetup' doesn't do anything.

As noted in changes and hints:

Quote:
If you need to use a non-US keyboard layout, then copy the file located at
/usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi to /etc/hal/fdi/policy
and edit it to suit your needs. Have a look at the contents of that file
for an example and more information.
http://slackware.mirrors.tds.net/pub..._AND_HINTS.TXT

So basically what I had to do was run this:

Code:
cp /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi /etc/hal/fdi/policy
nano /etc/hal/fdi/policy/10-keymap.fdi
For dvorak for example you change:

Code:
     <!-- 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</merge>
      <merge key="input.xkb.variant" type="string" />
to

Code:
      <!-- 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</merge>
      <merge key="input.xkb.variant" type="string">dvorak</merge>
And finally run:

Code:
/etc/rc.d/rc.hald restart
Then log back into xorg and everything should work.
linux H_TeXMeX_H is online now  
Tag This Post , , , ,
Reply With Quote
Thanked by:
Old 08-31-2009, 03:15 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Dali, China
Distribution: Slackware
Posts: 6,620
Thanked: 50
yo ... no more zero replies
linux Bruce Hill is offline     Reply With Quote
Old 09-24-2009, 04:18 PM   #3
mpregos
LQ Newbie
 
Registered: Oct 2006
Posts: 21
Thanked: 1
So i have the following 10-keymap.fdi file for my Greek language:
Code:
<!-- 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</merge>
      <merge key="input.xkb.variant" type="string">gr</merge>
I restart the hal deamon .

How i change to greek??????
linux mpregos is offline     Reply With Quote
Old 09-24-2009, 05:11 PM   #4
cendryon
LQ Newbie
 
Registered: Aug 2005
Location: France
Distribution: Slackware
Posts: 9
Thanked: 1
Hi

For a non-US keyboard, you replace the layout key.
Mine is french :
Code:
<!-- 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">fr</merge>
      <merge key="input.xkb.variant" type="string"/>
If you have a previous xorg.conf, just input XkbLayout in the layout key, and XkbVariant in the variant key.
windows_xp_2003 cendryon is offline     Reply With Quote
Old 09-26-2009, 03:37 AM   #5
mpregos
LQ Newbie
 
Registered: Oct 2006
Posts: 21
Thanked: 1
OK Done ...Thanks cendryon...

I add greek language and with alt-shift buttons change the layout.

Here is my 10-keymap.fdi file, as a reference:

Code:
 <!-- 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" />
linux mpregos is offline     Reply With Quote
Old 09-26-2009, 03:38 AM   #6
mpregos
LQ Newbie
 
Registered: Oct 2006
Posts: 21
Thanked: 1
OK Done ...Thanks cendryon...

I add greek language and with alt-shift buttons change the layout.

Here is my 10-keymap.fdi file, as a reference:

Code:
 <!-- 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" />
linux mpregos is offline     Reply With Quote
Thanked by:
Old 10-05-2009, 04:39 PM   #7
gefst
LQ Newbie
 
Registered: Sep 2003
Posts: 28
Thanked: 3
Building on Mpregos solution regarding Greek, you can change the last line as follows in order to be able to type the euro symbo using altgr and e:

<merge key="input.xkb.variant" type="string">,extended</merge>

For more information on the various options see here [in Greek]
http://members.hellug.gr/djart/grlinux-3.html
windows_xp_2003 gefst is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 layout siawash Linux - Software 2 05-11-2009 08:21 PM
Switching keyboard layout - Mandriva2006 - K.D.E. Windows Layout! itz2000 Mandriva 3 08-13-2006 07:43 PM
KDE Keyboard Shortcuts with different Keyboard Layout hellblade Linux - Software 5 04-18-2006 01:40 AM
keyboard layout fckivanc Ubuntu 4 09-29-2005 04:00 AM
Keyboard Layout AlessPT Linux - Software 1 12-20-2004 02:07 AM


All times are GMT -5. The time now is 06:45 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration