LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   4MLinux (https://www.linuxquestions.org/questions/4mlinux-115/)
-   -   keyboard layout switch (https://www.linuxquestions.org/questions/4mlinux-115/keyboard-layout-switch-4175731471/)

zandyg 12-03-2023 04:20 AM

keyboard layout switch
 
Hi. I want to have two keyboard layout in 4MLinux and switch bitween them. Is this possible? Tell me, please, how to do it.

pan64 12-03-2023 04:49 AM

4MLinux has jwm as window manager, and you can configure a menu item to change keyboard map (see setxkbmap) http://techtimejourney.net/wp-conten...jwm.x70132.pdf

zandyg 12-03-2023 11:20 AM

I found the following solution:
First, I copied /usr/share/X11/xorg.conf.d/90-keyboard-layout.conf to /etc/X11/xorg.conf.d
and edit it with Option "XkbOptions" "grp:alt_shift_toggle"
Next I added layout in /etc/kbd.conf
LAYOUT=us,ru (for example).
After reboot I can to switch keyboard layouts with alt+shift.

zk1234 12-03-2023 12:13 PM

Quote:

Originally Posted by zandyg (Post 6468202)
I found the following solution:
First, I copied /usr/share/X11/xorg.conf.d/90-keyboard-layout.conf to /etc/X11/xorg.conf.d
and edit it with Option "XkbOptions" "grp:alt_shift_toggle"
Next I added layout in /etc/kbd.conf
LAYOUT=us,ru (for example).
After reboot I can to switch keyboard layouts with alt+shift.

Bravo you!

To tell the truth I had no idea that such an option existed :)

.


All times are GMT -5. The time now is 07:38 PM.