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 10-16-2007, 10:26 AM   #1
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Installing an alternative keymap manually


I've just written an alternative keyboard file to give me a different set of AltGr combinations for special use. The problem is installing it.

In Gnome, the menu system-preferences-keyboard-layouts allows one to select up to four keyboard layouts, but it does not list the one I've made. My new layout is in /usr/share/X11/xkb/symbols/, and I've entered it in both /usr/share/X11/xkb/rules/base.xml and /usr/share/X11/xkb/rules/base.lst. Evidently Gnome uses its own built-in list of languages and ignores anything else.

So, I need to do it manually. But where is the list of installed keymaps kept? I've looked in obvious (and unlikely) places, but it's the old needle in a haystack situation. /etc/X11/xorg.conf only lists the default keyboard and there's nothing in any ~/. file.

Of course, I could cheat and call my new layout with a name that Gnome can recognise, like Bhutanese, but it would be nice to know how it works.
 
Old 10-17-2007, 12:56 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
If gnome uses the X server keyboard layouts, then you should read these files, they may give you hints on how to set it up.
/etc/X11/xkb/README.config
/etc/X11/xkb/compiled/README
 
Old 10-18-2007, 10:51 AM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Original Poster
Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Where are the keymaps recorded?

This is one of those occasions when one wishes for a little standardisation.

On Fedora, /etc/X11 does not contain a /xkb directory. There is a directory /usr/share/X11/xkb, but it doesn't have /compiled or README.config

A search for /compiled leads to /var/lib/xkb/compiled/README which was no help at all. Needless to say, I am not going to search for all the files called README!

My bodge idea doesn't work, either. I tried calling my special keymap Azerbaijani, but Gnome saw through my deception and ignored it.
 
Old 10-18-2007, 06:26 PM   #4
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
setxkbmap pl
 
Old 10-18-2007, 09:20 PM   #5
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
Hi, I'm quite interested in this topic and I have same problem, However what is the purpose of setxkbmap?
 
Old 10-19-2007, 10:45 AM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Original Poster
Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
setxkbmap newmap sets newmap as the current keyboard (try man setxkbmap). However, it also wipes any xmodmap and xbindkeys definitions. If you have a modern multi-media keyboard and have carefully set up the www and play/pause buttons, setxkbmap means they all have to be reset.

I know some people feel clever or virtuous when using the command line rather than the desktop, but the facilities in Gnome are put there for a purpose. The old unix utilities are often incompatible with modern features, as I've found in other contexts.

At setxkbmap did reveal the probable problem, reporting an error in loading the new keyboard. If I can find that, I'll have another go at passing it off as Azerbaijani.
 
  


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
Installing Xorg 7.3 manually Q.. Linux - Software 16 10-28-2007 12:09 PM
Manually Installing Grub jan1024188 Fedora 3 08-16-2006 03:44 PM
Manually installing fluxbox c19h28O2 Debian 5 05-01-2006 12:49 PM
Installing GRUB manually, is this going to be a challenge? rollo Linux - Newbie 3 03-01-2006 04:29 PM
installing grub manually abhinav_raj Linux - Software 3 03-22-2005 09:39 AM

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

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