czark...@gmail.com wrote:

> czark...@gmail.com wrote:
>
> > I need to add a custom XKB layout to use (it actually is commited to
> > xkb-config now, but not released yet).
> >
> > With the xkb-config 1.8 I had to patch xkb/rules/base.xml and symbols/??
> > files.
> >
> > As I can't find neither base.xml nor xkb-config version used in 4.7, I am
> > confused. I've already patched my xkb configs, but what should I edit to 
> > make
> > X see my new layouts in symbols/?? files?
>
> I actually found out on the internet that I should edit
> /etc/X11/xkb/rules/xorg.lst and /etc/X11/xkb/rules/xorg.xml. After editing
> both of them I've got:
>
> % setxkbmap -rules xorg -layout us,ru -variant serbian,serbian -v 10 
> Setting verbose level to 10
> locale is C
> Warning! Multiple definitions of rules file
>          Using command line, ignoring X server
> Warning! Multiple definitions of keyboard layout
>          Using command line, ignoring X server
> Warning! Multiple definitions of layout variant
>          Using command line, ignoring X server
> Applied rules from xorg:
> model:      pc105
> layout:     us,ru
> variant:    serbian,serbian
> options:    grp:caps_toggle
> Trying to build keymap using the following components:
> keycodes:   xfree86+aliases(qwerty)
> types:      complete
> compat:     complete+ledcaps(group_lock)
> symbols:    
> pc/pc(pc105)+pc/us(serbian)+pc/ru(serbian):2+group(caps_toggle)+group(caps_toggle)
> geometry:   pc(pc105)
> Error loading new keyboard description
>
> The "us" and "ru" files in /etc/X11/xkb/symbols/ are patched, the same setup
> works as of xorg 1.7. Both layouts included to /etc/X11/xkb/rules/xorg.lst and
> /etc/X11/xkb/rules/xorg.xml.
>
> Does anyone know where should I read about that or what sould I do elsewise?

Just in case someone'll be having a similar problem:

The actual symbol files read by setxkbmap on OpenBSD 4.7 reside under
"/etc/X11/xkb/symbols/pc/", and therefor they should be edited if needed.

There's also an issue with including other configs (including configs from
"/etc/X11/xkb/symbols/" worked for me in case of "us" map and failed with "ru"
map for some obscure reasons, so I had to copy entire layout into my "ru"
map).

Anyway, now everything works, problem is solved.

--
Dmitrij D. Czarkoff

Reply via email to