You are not logged in.

#1 2023-08-05 18:49:25

yerigalem
Member
Registered: 2023-08-05
Posts: 7

Adding Armenian Keyboard Layout [SOLVED]

I followed the steps in the Arch Wiki: https://wiki.archlinux.org/title/Xorg/K … figuration

I tried first to manually create the file and it looked normal, rebooted but the keyboard wouldn't switch. Then I tried the command

localectl [--no-convert] set-x11-keymap layout [model [variant [options]]]

rebooted and it still didn't work. I wanted to add about seven keyboard layouts at first, but now I'm just trying to at least get the Armenian keyboard to work.

Here's what my current file looks like in /etc/X11/xorg.conf.d:

# Written by systemd-localed(8), read by systemd-loc>
# probably wise not to edit this file manually. Use >
# instruct systemd-localed to update it.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us,am"
        Option "XkbModel" "grp:win_space_toggle"
EndSection

Last edited by yerigalem (2023-08-05 19:38:11)

Offline

#2 2023-08-05 19:05:59

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

Re: Adding Armenian Keyboard Layout [SOLVED]

setxkbmap -print -query

Can you switch the layouts w/

xdotool key ISO_Next_Group

or https://aur.archlinux.org/packages/xkb-switch ?

Edit: D'OHHH

Option "XkbModel" "grp:win_space_toggle"

This is wrong, should be

Option "XkbOptions" "grp:win_space_toggle"

Last edited by seth (2023-08-05 19:13:07)

Offline

#3 2023-08-05 19:19:09

yerigalem
Member
Registered: 2023-08-05
Posts: 7

Re: Adding Armenian Keyboard Layout [SOLVED]

seth wrote:
setxkbmap -print -query

Can you switch the layouts w/

xdotool key ISO_Next_Group

or https://aur.archlinux.org/packages/xkb-switch ?

Edit: D'OHHH

Option "XkbModel" "grp:win_space_toggle"

This is wrong, should be

Option "XkbOptions" "grp:win_space_toggle"

It worked with xkb-switch, I actually had to turn off the computer manually and restart because I couldn't switch back to English LOL.

So I can change the kayboard layout that way, why doesn't the keyboard shortcut work? I tried win_space_toggle and alt_shift_toggle.

Offline

#4 2023-08-05 19:22:08

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

Re: Adding Armenian Keyboard Layout [SOLVED]

Because the x11 option is wrong, would show up in the xorg log.

Offline

#5 2023-08-05 19:23:03

yerigalem
Member
Registered: 2023-08-05
Posts: 7

Re: Adding Armenian Keyboard Layout [SOLVED]

I just saw your edit, is it okay to edit the tile? Because I used the localectl command to set the file up and as far as I know it edits the file every time I reboot.

Offline

#6 2023-08-05 19:27:44

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

Re: Adding Armenian Keyboard Layout [SOLVED]

You likely used localectl wrongly:

https://wiki.archlinux.org/title/Xorg/Keyboard_configuration#Using_localectl wrote:

To set a model, variant or options, all preceding fields need to be specified, but the preceding fields can be skipped by passing an empty string with "".

And it's your thread, you can alter the subject as you see fit.

Offline

#7 2023-08-05 19:30:22

yerigalem
Member
Registered: 2023-08-05
Posts: 7

Re: Adding Armenian Keyboard Layout [SOLVED]

# Written by systemd-localed(8), read by systemd-loc>
# probably wise not to edit this file manually. Use >
# instruct systemd-localed to update it.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us,am"
        Option "XkbOptions" "grp:wind_space_toggle"
EndSection

This is what my file looks like now, after I manually edited and rebooted. The keyboard shortcut still doesn't work.

Offline

#8 2023-08-05 19:31:48

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

Re: Adding Armenian Keyboard Layout [SOLVED]

MS is full of hot air in in azure cloud, but the key is still the "win" key wink

Offline

#9 2023-08-05 19:33:09

yerigalem
Member
Registered: 2023-08-05
Posts: 7

Re: Adding Armenian Keyboard Layout [SOLVED]

I just tried the localectl option too with adding empty strings "" before the Options, the file seems correct now, but it still doesn't work after rebooting.

Offline

#10 2023-08-05 19:34:45

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

Re: Adding Armenian Keyboard Layout [SOLVED]

seems correct now

Post it? And please don't copy-paste it out of a pager (the trailing ">" says it's truncated)

Offline

#11 2023-08-05 19:34:52

yerigalem
Member
Registered: 2023-08-05
Posts: 7

Re: Adding Armenian Keyboard Layout [SOLVED]

seth wrote:

MS is full of hot air in in azure cloud, but the key is still the "win" key wink

HAHA I have to pay more attention, but that's funny.

Offline

#12 2023-08-05 19:37:19

yerigalem
Member
Registered: 2023-08-05
Posts: 7

Re: Adding Armenian Keyboard Layout [SOLVED]

IT WORKED. I tried the localectl command again without the spelling error and it works now, finally. Thank you Seth, I'll mark the post as solved.

Offline

Board footer

Powered by FluxBB