Change keyboard layout?

Hello.

I have successfully install FreeBSD 10 + Xorg-minimal + JWM + sound + web-access. ;-)

I block on how to change the keyboard layout.

The default is English US.

Running kbdmap in console is working.
I was able to choose a other layout and did enter.

Sadly, the layout did not change, it is still English US.

What did I forget to do ?

Thanks.

Fre;D
 
Hello.

I have try with setxkbmap [I]xkb_layout[/I]
Without luck. ;-)
I get error message about wrong kb_layout and i do not know what to write.

Running kbdmap in console gives this =>

kb_freebsd.png


After < OK >, it comes back to clear console but the keyboard layout did not change.

Thank to help.

Fred.
 
kbdmap is for the console. setxkbmap is the utility you want for X11.
setxkbmap pt or setxkbmap br may be what you want.

Hello and thank for help.

I will try.
But it does not solve the choosing.
Does it exist a program for x that does the same thing than kbdmap ?
Or where is stored the choice done by kbdmap to use it for setxbmap ?

Thanks.
 
Hello and thank for help.
But it does not solve the choosing.
Does it exist a program for x that does the same thing than kbdmap ?
Or where is stored the choice done by kbdmap to use it for setxbmap ?

Thanks.

Most of the desktop environments, such as KDE, GNOME, XFCE etc. have graphical menus for selecting keyboard layouts. I don't think there's something for JWM specifically. But you could set up a command like exec setxkbmap pt & in your ~/.xinitrc (or perhaps ~/.xsession). Or you could configure it in xorg.conf or xorg.conf.d/input.conf.
 
Hello and thanks for answer.
exec setxkbmap pt & in your ~/.xinitrc (or perhaps ~/.xsession). Or you could configure it in xorg.conf or xorg.conf.d/input.conf.

Yep, this if you already know what keyboard you want ;-)

Maybe, after running kbdmap, a config file is created somewhere.
I will search for this file and use it to define the keyboard layout to use.
Then setxkbmap kb_layout_of_kbdmap

Thanks.
 
A way to change the keymap is to use the kbdmap(1) command from a virtual console and you will presented with a similar graphical user interface for choosing a keymap. The kbdmap command, however, does not write anything to /etc/rc.conf, so if you reboot FreeBSD, the keymap will be set back to whatever /etc/rc.conf specifies, or the standard default.

So read the FreeBSD Handbook to know how to specify your language environment:
https://www.freebsd.org/doc/handbook/using-localization.html
 
i know this post is old but i am posting the answer for anyone who is looking at this anyways

setxkbmap -option 'grp:alt_shift_toggle' -layout first-layout,second-layout,third-layout #replace layout with us or gr or de and then shift alt will shuffle through the layout
 
i know this post is old but i am posting the answer for anyone who is looking at this anyways

setxkbmap -option 'grp:alt_shift_toggle' -layout first-layout,second-layout,third-layout #replace layout with us or gr or de and then shift alt will shuffle through the layout
Yep, and you can specify variants too:
setxkbmap -layout us,us -variant ,dvp -option grp:alt_space_toggle
This command will set two us keyboard layout: 1st standard us layout, and 2nd dvorak programmer layout.
 
Back
Top