You are not logged in.

#1 2021-10-01 11:18:15

Ivailo
Member
Registered: 2021-10-01
Posts: 3

Secondary keyboard layout not working [Solved]

I followed the wiki but nothing works.

Output from setxkbmap -query

rules:      evdev
model:      asus_laptop
layout:     bg,us
variant:    ,qwerty
options:    grp:alt_shift_toggle

My .xinitrc

setxkbmap -model asus_laptop -layout bg,us -variant ,qwerty -option grp:alt_shift_toggle
exec awesome

Any my xorg conf file located in /etc/X11/xorg.conf.d/00-keyboard.conf

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "bg,us"
        Option "XkbModel" "asus_laptop"
        Option "XkbVariant" ",qwerty"
        Option "XkbOptions" "grp:alt_shift_toggle"
EndSection

I tried restarting my pc, changing xkboptions grp and both don't help.

Last edited by Ivailo (2021-10-02 10:46:37)

Offline

#2 2021-10-01 12:38:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,255

Re: Secondary keyboard layout not working [Solved]

1. Please use code tags, https://bbs.archlinux.org/help.php#bbcode
2. Your xinitrc is broken, see the last link below
3. What do you mean by " nothing works"? You configured a dual layout and Alt+Shift to toggle between the layouts. The only thing I could see as a problem is that I'm not sure that "qwerty" is a valid US layout (or that such variation would make sense, because the US layout is a qwerty design anyway)

Online

#3 2021-10-01 16:43:16

Ivailo
Member
Registered: 2021-10-01
Posts: 3

Re: Secondary keyboard layout not working [Solved]

So do I just not provide a layout then, if the default is qwerty?

Offline

#4 2021-10-01 16:46:44

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,255

Re: Secondary keyboard layout not working [Solved]

"A" qwerty. There're many layouts available, they're all (i think, certainly most) qwerty.

grep xkb_symbols /usr/share/X11/xkb/symbols/us

You still didn't explain how you determine that "nothing works".

Online

#5 2021-10-01 17:00:34

Ivailo
Member
Registered: 2021-10-01
Posts: 3

Re: Secondary keyboard layout not working [Solved]

seth wrote:

You still didn't explain how you determine that "nothing works".


By that I meant that only English keyboard was available. I couldn't switch to the Bulgarian layout at all.

I did manage to fix it by well fixing my broken xinitrc and also removing the qwerty layout.

setxkbmap -model asus_laptop -layout bg,us -option grp:alt_shift_toggle &
exec awesome

Now I can switch and am a happy human. Thanks a lot.

Reading the link in your banner I noticed what confused me at first and led me to making this error.
This line in the documentation is what confused me.

Remember that lines following a command using exec would be ignored.

Not only that but I also didn't read the next paragraph which mentions the use of '&'.

Offline

#6 2021-10-01 20:24:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,255

Re: Secondary keyboard layout not working [Solved]

Don't fork the setxkbmap call - it was good as it was.
Your xinitrc is (still) broken because it doesn't include the sources that import the session environment (and pot. other stuff) see the 2nd note in the link.

Also please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB