LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   how to change keymap ? (https://www.linuxquestions.org/questions/slackware-14/how-to-change-keymap-344955/)

intmail 07-20-2005 07:05 AM

how to change keymap ?
 
how to change keymap ?
----------------------------------------

Hello,

When I use Xwindow then Linux use the English/American
keymap. My question is how to switch to French keyboard map
in linux (command line and XWindow) ?

thanks
----------------------------------------
INTMAIL

flupke 07-20-2005 07:52 AM

In your /etc/X11/xorg.conf, change the
Code:

Option        "XkbLayout" "us"
line to
Code:

Option        "XkbLayout" "be"

HTH
Flupke

donJulio 10-05-2005 01:52 PM

Is there a way to change the keymap from the command line w/o having to edit any particular file?

Berto 10-05-2005 03:03 PM

I think the pkgtool command has an option to change the keymap.

Alien Bob 10-05-2005 03:22 PM

In the console:

To change the keymap used in Slackware console, the init scripts look for a file called "/etc/rc.d/rc.keymap". The file should have contents like this:

Code:

#!/bin/sh
# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
  /usr/bin/loadkeys fr.map
fi

This file should also be executable:
Code:

chmod +x /etc/rc.d/rc.keymap
Instead of "fr.map" you could also try "fr-latin1.map". More keymap files are in directory /usr/share/kbd/keymaps/i386/azerty .

In X:

KDE and Gnome will let you select a keyboard layout. KDE in Control Panel, and Gnome there's surely something similar (I don't run KDE or Gnome at the moment). If you use another desktop environment, the easiest way is still, to edit /etc/X11/xorg.conf ... or re-run "xorgconfig" to generate a new xorg.conf and this time select a french keyboard layout.

Eric


All times are GMT -5. The time now is 07:22 AM.