Switching the FreeBSD keyboard language in any X window manager or desktop environment.

 

Let's look at one way to change the keyboard language in FreeBSD based on a small script.

So create a file with any name, for me it is KeyLumina.sh and add to it the following lines:

 

 

#!/bin/sh

setxkbmap -layout "us,ua" -option "grp:alt_shift_toggle,grp_led:scroll"

 

If you need russian, but why do you need it, add in quotes ru after the comma.

 

 

To start the script automatically, you can add the following to the cron:

 

@reboot /home/user/..../KeyLumina.sh

 

If the desktop environment you are using allows you to autorun scripts but does not have its own keyboard switching facility then you can also use this method.

 

Make sure to make the file executable by using this command:

 

chmod a+x /home/user/..../KeyLumina.sh

Share This Article

Previous Article

July 23, 2022 • 8:03PM

Next Article

November 12, 2022 • 6:54AM

From Our Blog