sudo dpkg-reconfigure console-setup
This will step through various configuration options for your console, along with Keyboard Layout.
For temporarily switching between keyboard layouts
Especially if you don't have too many keybindings
So I needed to have both the regular US keyboard as well as the US International keyboard so that I could type in Thai keyboard.
Here are the steps I took:
1) Determine which keyboard layouts you want to switch between. Determine if you want 2, 3, or more. This tutorial will work with as many as you need, but this is the first step
2) Open up a text editor and open the file ~/.config/openbox/rc.xml
3) Scroll down to the keybindings section - you should see stuff like <keybinding key="“blah-blah”"></keybinding>
4) Find any line which says </keybinding>
5) Go to the end of that line and hit Enter
6) Copy and paste the following text:
<keybind key="C-F11">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>English keyboard</name>
</startupnotify>
<command>setxkbmap us</command>
</action>
</keybind>
<keybind key="C-F12">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Thai keyboard</name>
</startupnotify>
<command>setxkbmap th</command>
</action>
</keybind>
7) Edit the <key=“C-F12”> and the <command>setxkbmap th</command> to fit your desires (C is Ctrl key, A is Alt key, S is Shift key, and change it if you want )
8) Rinse, Lather, and Repeat for all of your other desired keymaps.
9) Restart Openbox or reboot computer.
That's it!
No comments:
Post a Comment