(This is an adition to the setting of Hebrew/English keyboard from Nir Peled).
DISCKAIMER:
Use at your own risk! The only assurance that I make is:
This setup work fine on my computer (TOSHIBA Portege laptom with Debian 3.0r1 and Xfree86 version 4.2.1) :-)
The Hebrew/English keyboard switching can be set within the X11 configuration file without a need to execute the shell command "setxkbmap".
Tested with: OpenOffice 643c, StarOffice 6.1 EA2, Mozilla 1.2.1 Composer,.
With the following setting, there is no need to execute "setxkbmap" - just press both the shift keys to switch between keyboard layouts.
Here are the relevant sections from my /etc/X11/XF86Config-4 file (also attached):
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
Option "AutoRepeat" "250 30" # From http://www.ecn.purdue.edu/~laird/Linux/XF86Config-4.Portege
# From http://www.linux.org.il:8080/Control_Panel/Products/Squishdot/IGLU/1033240066/hebrew.html :
# To switch between keyboard layouts press both "shift" keys at the same time.
Option "XkbOptions" "grp:switch,grp:shift_toggle,grp_led:scroll"
EndSection
Section "InputDevice"
# Keep the identifier as it is also the driver:
Identifier "Keyboard0"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "il"
# From http://www.linux.org.il:8080/Control_Panel/Products/Squishdot/IGLU/1033240066/hebrew.html :
# To switch between keyboard layouts press both "shift" keys at the same time.
Option "XkbOptions" "grp:switch,grp:shift_toggle,grp_led:scroll"
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Configured Mouse"
InputDevice "Generic Mouse"
# the multiple keyboard section here replace the need for an external command "setxkbmap -option grp:switch,grp:shift_toggle,grp_led:scroll il"
InputDevice "Generic Keyboard"
InputDevice "Keyboard0"
EndSection
http://www.mail-archive.com/[email protected]/msg00003.html
--
---
Gal Shalif. Staff Engineer.
Engineering, Sun Developer Network Group, Israel
MDE primary contact for Amdocs engineering at Israel [EMAIL PROTECTED]
Office at Israel: +972-9-9711256 x/12256
Mobile: +972 55 243285
Fax: +972-9-9711222
### BEGIN DEBCONF SECTION # XF86Config-4 (XFree86 server configuration file) generated by dexconf, the # Debian X Configuration tool, using values from the debconf database. # # Edit this file with caution, and see the XF86Config-4 manual page. # (Type "man XF86Config-4" at the shell prompt.) # # If you want your changes to this file preserved by dexconf, only make changes # before the "### BEGIN DEBCONF SECTION" line above, and/or after the # "### END DEBCONF SECTION" line below. # # To change things within the debconf section, run the command: # dpkg-reconfigure xserver-xfree86 # as root. Also see "How do I add custom sections to a dexconf-generated # XF86Config or XF86Config-4 file?" in /usr/share/doc/xfree86-common/FAQ.gz.
Section "Files"
FontPath "/usr/X11R6/lib/X11/fonts/TrueType"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
FontPath "/usr/lib/X11/fonts/hebrew-elmar"
FontPath "/usr/share/fonts/elmar"
EndSection
Section "Module"
Load "xtt"
Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
# Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
Option "AutoRepeat" "250 30" # From
http://www.ecn.purdue.edu/~laird/Linux/XF86Config-4.Portege
# From
http://www.linux.org.il:8080/Control_Panel/Products/Squishdot/IGLU/1033240066/hebrew.html
:
# To switch between keyboard layouts press both "shift" keys at the same time.
Option "XkbOptions" "grp:switch,grp:shift_toggle,grp_led:scroll"
EndSection
Section "InputDevice"
# Keep the identifier as it is also the driver:
Identifier "Keyboard0"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "il"
# From
http://www.linux.org.il:8080/Control_Panel/Products/Squishdot/IGLU/1033240066/hebrew.html
:
# To switch between keyboard layouts press both "shift" keys at the same time.
Option "XkbOptions" "grp:switch,grp:shift_toggle,grp_led:scroll"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "PS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Generic Mouse"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "Device"
Identifier "Generic Video Card"
Driver "vesa"
Option "UseFBDev" "true"
EndSection
Section "Monitor"
Identifier "Generic Monitor"
HorizSync 30-60
VertRefresh 50-75
Option "DPMS"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 16
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Configured Mouse"
InputDevice "Generic Mouse"
# the multiple keyboard section here replace the need for an external command
"setxkbmap -option grp:switch,grp:shift_toggle,grp_led:scroll il"
InputDevice "Generic Keyboard"
InputDevice "Keyboard0"
EndSection
Section "DRI"
Mode 0666
EndSection
### END DEBCONF SECTION
