Topic: Howto International Keyboards /Keybindings/Alt-Gr/Keymaps/Options
I had a problem with the Spanish keyboard on my Acer Aspire 3004 laptop. This is how I solved the problem of the standard "es" keyboard settings not giving me use of Alt or Alt-Gr keys.
Note: Before reading the member fixes below, also have a look at the Crunchbang wiki which contains useful information related to configuring keyboards, keymaps and keybindings:
http://crunchbanglinux.org/wiki/howto/keyboard_settings
http://crunchbanglinux.org/wiki/configuring_keybindings
Laptop with Spanish Keyboard
Edit /etc/default/keyboard to "es" and "105"
XKBMODEL="pc105"
XKBLAYOUT="es"
XKBVARIANT=""
XKBOPTIONS=""Keyboard Configuration Tool:
There is also a built in Keyboard Configuration tool that you can use, which will also edit /etc/default/keyboard:
sudo dpkg-reconfigure keyboard-configurationKeyboards with Two Languages:
Kodx posted a fix for dual-language keyboards as well as having Keyboard options such as the old "Ctrl+Alt+Backspace" to restart X:
This is his example with a dual US and Russian layout
XKBMODEL="pc105"
XKBLAYOUT="us,ru"
XKBVARIANT=","
XKBOPTIONS="grp:caps_toggle,terminate:ctrl_alt_bksp,grp_led:scroll"Kodx also offered some different key combination options for toggling between languages:
grp:caps_toggle - CapsLock
grp:alt_shift_toggle - Alt+Shift
grp:ctrl_shift_toggle - Ctrl+ShiftThen update Hal to keep the settings:
/etc/init.d/hal restart(Optional) Disabling the Crunchbang System Tray Keyboard Switcher:
Comment out the keyboard settings on ~/.config/openbox/autostart.sh
# Set-up keyboard maps and sytem tray switcher
# tip - quickly toggle between keyboard maps by holding both shift keys!
#setxkbmap -option grp:switch,grp:shifts_toggle,grp_led:scroll gb,us,de,fr,es &
#(sleep 1s && fbxkb) &
# ^^ note: if using the LiveCD, you can also change to a different
# keyboard map by entering the terminal command:
# setxkbmap xx
# Where "xx" is the 2 letter country code.Last edited by rich (2010-04-01 22:04:01)
