Hello Nulik,

in my answer, I suppose that you use the latest script version with
setxkbmap.

First thing first, if you look at the script, "Foo" being the 3rd parameter
(and lua being 1-index based), it will be the caption display in the widget
for your keyboard configuration.

kbdcfg.widget:set_text(" " .. t[3] .. " ")

Regarding the first and second params in the config, they are used in the
generated command configuring your keyboard mapping.

os.execute( kbdcfg.cmd .. " " .. t[1] .. " " .. t[2] )

Generating respectively `setxkbmap us   ` (blank spaces as 2nd is "") and
`setxkbmap us dvorak`
They served to select a special variant of your keyboard mapping. Without
variant, you get the default mapping.
Read manual of setxkbmap for full info.

Regarding your errors, I can't really say. Send your personal version of
the lua code so we can see what's wrong.

Cheers
Kineolyan

On Sat, Sep 10, 2016 at 3:42 PM Absolute Zero <nulik...@gmail.com> wrote:

> Hi,
> I am having hard time configuring keyboard layout, I want russian ,
> english and spanish. But I do not understand how to configure. I am
> following the instructions from here:
> https://awesome.naquadah.org/wiki/Change_keyboard_maps
>
> But what does this mean:
>
> kbdcfg.layout = { { "us", "" , "Foo" }, { "us", "dvorak" , "Bar" } }
>
> ????
>
> What should be Foo ??? What should be Bar ??? Why is the "us" parameter
>  duplicated ? Why there is an empty space as the second parameter in the
> first list? Are these two lists somewhat related to each other ?
> I have tried many options but I just get some weird errors in the log like
> these and nothing works:
>
> Sep 10 08:22:32 dev1.home /usr/libexec/gdm-x-session[7394]: >
>       Abandoning symbols file "default"
> Sep 10 08:22:32 dev1.home /usr/libexec/gdm-x-session[7394]: Errors from
> xkbcomp are not fatal to the X server
> Sep 10 08:22:32 dev1.home /usr/libexec/gdm-x-session[7394]: (EE) Error
> loading keymap /tmp/server-1.xkm
> Sep 10 08:22:32 dev1.home /usr/libexec/gdm-x-session[7394]: Error loading
> new keyboard description
> Sep 10 08:22:32 dev1.home /usr/libexec/gdm-x-session[7394]: The XKEYBOARD
> keymap compiler (xkbcomp) reports:
> Sep 10 08:22:32 dev1.home /usr/libexec/gdm-x-session[7394]: > Error:
>      No Symbols named "es" in the include file "us"
> Sep 10 08:22:32 dev1.home /usr/libexec/gdm-x-session[7394]: >
>       Exiting
> Sep 10 08:22:32 dev1.home /usr/libexec/gdm-x-session[7394]: >
>       Abandoning symbols file "default"
>
> Could someone explain the input parameters on the keyboard code snippet ?
>
>
> TIA
> Nulik
>

Reply via email to