So I want to get the Persian layout for my keyboard but when I try
localectl --no-convert set-keymap us ir
I get this error, but I have no idea how you install a keymap it used to be installed but in an update arch Linux deleted my Persian IR keymap and I searched but could not find any easy way to install keymaps
when i set it to fa i get no error but then it doesnt switch properly and when i use grep -i ‘persian’ /usr/share/X11/xkb/rules/base.lst it returns ir and not fa so its not me typing incorrect code
SOLVED: the correct keymap was fa and in hyprland you also need to define it in keyboard.conf
If you set them with localectl you should check for the proper code with
localectl list-keymaps. There is no ir code in my system, only fa.What exactly do you mean by not switching properly if you install with fa?
Thanks for correct keymaps, it doesn’t switch when I do hyprctl switchxkblayout evision-rgb-keyboard next
I am not familiar with Hyprland. It does seem you can (possibly have to) put the layouts in hyprland.conf, as well as set keyboard shortcuts instead of using hyprctl.
input {
kb_layout=us,fa
kb_options=grp:win_space_toggle
}
Still didn’t work for me, I did set shortcut to exec that hyprctl command it worked previously and is the recommended way in the hyprland documentation https://wiki.hypr.land/Configuring/Uncommon-tips–tricks/, and it works with other languages the problem is just that it doesn’t work and setting it in hyprland.conf doesn’t work either


