LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-30-2009, 09:09 AM   #1
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
keyboard layout sw 13.0


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.
 
Old 08-31-2009, 02:15 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
yo ... no more zero replies
 
Old 09-24-2009, 03:18 PM   #3
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Rep: Reputation: 16
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??????
 
Old 09-24-2009, 04:11 PM   #4
cendryon
Member
 
Registered: Aug 2005
Location: France
Distribution: Slackware64 current
Posts: 82

Rep: Reputation: 30
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.
 
Old 09-26-2009, 02:37 AM   #5
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Rep: Reputation: 16
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" />
 
Old 09-26-2009, 02:38 AM   #6
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Rep: Reputation: 16
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" />
 
Old 10-05-2009, 03:39 PM   #7
gefst
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Rep: Reputation: 17
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
 
Old 08-11-2011, 12:01 PM   #8
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Rep: Reputation: 16
Update

Add keyboard layout in Slack 13.37....In this example i use my lang -> Greek:

Hal daemon is history....At least ,about hotplugging . So, now if you want to modify - add a layout in your keyboard you should do the following:
From CHANGES_AND_HINTS.TXT
Quote:
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.

/usr/share/X11/xorg.conf.d/ is the "packaged" configuration directory; all
files ending with ".conf" in this directory are used by the X server
unless there is an identically-named file in the local sysadmin directory.
The local sysadmin config directory is /etc/X11/xorg.conf.d/ - all files
ending with ".conf" in this directory are parsed.
Code:
cp /usr/share/X11/xorg.conf.d/90-keyboard-layout.conf /etc/X11/xorg.conf.d/

pico /etc/X11/xorg.conf.d/90-keyboard-layout.conf
Mine 90-keyboard-layout.conf looks like this,with Euro symbol enabled .... Modify according your needs

Quote:
Section "InputClass"
Identifier "keyboard-all"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbLayout" "us,el"
Option "XkbVariant" "basic,extended"
Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll,compose:menu"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
 
Old 08-11-2011, 01:15 PM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928

Original Poster
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Yeah, you should always check CHANGES_AND_HINTS.TXT. It will say what needs to be done.
 
  


Reply

Tags
keyboard, layout, slackware, sw



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

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

All times are GMT -5. The time now is 08:57 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