• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!



Page history last edited by PBworks 17 years, 8 months ago


Home > Remapping > xkb


An xkb file is the best way to permanently install a new keyboard layout in X11, on linux or unix. Layouts installed this way can be selected using the tray icons provided by Gnome and KDE.


An xkb file needs to be copied into the directory /usr/share/X11/xkb/symbols/, /usr/lib/X11/xkb/symbols, or something similar depending on your distribution. In that directory you will find various files for the standard regional keyboard layouts. There are two methods for installing it:


1. Replace one of those existing regional layout files (after taking a backup, of course). For example by replacing the file "al" you are replacing the "Albania" layout, so you can switch to this new layout by choosing "Albanian" in your Gnome or KDE configuration.


2. This method adds a new entry for your custom AG5 layout to the Gnome or KDE configuration, so that you can select "Alphagrip" rather than "Albanian". Save your new file in the symbols directory - for this example call it "ag5". For KDE or Gnome to know about this new layout you need to add it to xkb/rules/base.lst. Copy the line for "Albania", but replace "Albania" with "Alphagrip" and "al" with "ag5".


Comments (0)

You don't have permission to comment on this page.