LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-27-2014, 09:54 PM   #1
ventsyv
Member
 
Registered: Apr 2006
Posts: 57

Rep: Reputation: 3
How to install a custom keyboard layout


I want to install a custom keyboard layout on my Lubuntu 14.04
I added my layout in /usr/share/X11/xkb/symbols/<language file>

and I added the appropriate configurations in base.xml, base.lst, evdev.xml and evdev.lst under /usr/share/X11/xkb/rules but the IBus Preferences applet is not showing the new layout under the language I added it under.

How can I enable the new layout so I can use it?
 
Old 08-27-2014, 11:56 PM   #2
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Have you tried
Code:
setxkbmap <your language file>
That's how I set my map for dvorak in Fluxbox. I have never tried a completely from-scratch map, though.
 
Old 08-28-2014, 08:32 AM   #3
ventsyv
Member
 
Registered: Apr 2006
Posts: 57

Original Poster
Rep: Reputation: 3
That sets the language but not the layout. I tried all the different options for setxkbmap and I was still not able to load my keyboard layout.
 
Old 08-28-2014, 11:22 AM   #4
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
Firstly, you do need to tell us your distro and desktop environment when you ask a question, because the answers may vary.

Most keyboard configuration tools do not look to see what drivers are in the directory, but rely on a built-in list. If you are just going to re-write the basic driver, keep the name the same. My driver "gb" is still qwerty, but has 14 other keys changed. You will only need a different name if you are creating two versions. So my "gb" has phonetic symbols on the third level, but I have another driver with astrological ones: "☉" instead of "ə" on "a". That I call "astro", so I need a way of entering it. The solutions are

1. If your desktop has a configuration editor (sometimes not installed by default), you will find a place under keyboard (which may be under peripherals) where the drivers are listed, like
layouts [gb,gr, astro]
and you can just type in the new name.

2. Otherwise, you need to search the home directory for the desktop's configuration files, and edit the keyboard one.
 
Old 08-28-2014, 11:39 AM   #5
ventsyv
Member
 
Registered: Apr 2006
Posts: 57

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by ventsyv View Post
I want to install a custom keyboard layout on my Lubuntu 14.04
Lubuntu comes with LXDE.

I thought the keyboard config tool ("IBus Preferences" in Lubuntu) looks at the config files under X11? Are you saying that's not the case?
Is there another way to switch between keyboard layout?
 
Old 08-29-2014, 11:31 AM   #6
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
Sorry I missed the Lubuntu bit: I just looked at the profile. As I said, the list is built-in. If it weren't, the program would give you a useless list of options — ie, il, in — that no-one would understand. If you use my second method, it will work.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Keyboard Layout? Shammyhealz Linux - Newbie 3 10-05-2012 08:50 AM
Adding a custom keyboard layout in Kubuntu dotancohen Linux - General 2 03-01-2011 02:20 PM
Change character in custom keyboard layout jdtiede Linux - Software 1 03-10-2010 04:48 AM
[SOLVED] Help with custom keyboard layout lucmove Linux - Hardware 7 09-07-2009 03:01 PM
Install KeyBoard Layout Natilous Linux - Software 2 10-12-2005 08:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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