LINUX.ORG.RU

Раскладка клавиатуры


0

0

Привет всем, вот вопрос, а как сделать переключение раскладок с помощью клавишей ctrl+shift, дистриб Slackware 10, там еще установлен xorg, с которым я никогда ранее не имел дел Вот кусок файла xorg.conf после моих эксперементов ---------------------------------------------------------------------- Section "InputDevice" Identifier "Keyboard0" Driver "keyboard" Option "XkbModel" "pc104" Option "XkbLayout" "en_US,ru(winkeys)" Option "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll" EndSection


Вот с такими параметрами работает:
Option "XkbRules"   "xorg"
Option "XkbModel"   "pc105"
Option "XkbLayout"  "us,ru(winkeys)"
Option "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll"
в новых xorg надо еще Driver "keyboard" поменять на "kbd" (c 6.8.0 обязательно, в 6.7.0 старый драйвер еще есть).

dn2010 ★★★★★
()
Ответ на: комментарий от jackill

Согласен, расслаблять новичков расслаблять не надо, я специально для этого и взял дистриб где все надо делать руками, потом будет легче ;)

SeRj0
() автор топика
Ответ на: комментарий от SeRj0

Не думаю что это лучший вариант

Наоборот, начинать надо от простого к сложному.

Сам почувствуешь, когда тебе это захочется.

Demetrio ★★★★★
()
Ответ на: комментарий от dn2010

Что-то у меня все равно не работает раскладка :(. Там две секции Input. Вот кусок файла xorg, может кто подскажет в чем дело?
----------------------------------CODE-------------------------------
#    ModulePath "/usr/X11R6/lib/modules"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	FontPath     "/usr/X11R6/lib/X11/fonts/local/"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
	FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/cyrillic/"
EndSection

Section "Module"

# This loads the DBE extension module.
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
# This loads the font modules
	Load  "dbe"  	# Double buffer extension
	SubSection "extmod"
		Option	    "omit xfree86-dga"   # don't initialise the DGA extension
	EndSubSection
	Load  "type1"
	Load  "freetype"
	Load  "speedo"
# This loads the GLX module
	Load  "glx"
EndSection

Section "InputDevice"

# For most OSs the protocol can be omitted (it defaults to "Standard").
# When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
# uncomment the following line.
#    Option     "Protocol"      "Xqueue"
# Set the keyboard auto repeat parameters.  Not all platforms implement
# this.
#    Option     "AutoRepeat"    "500 5"
# Specifiy which keyboard LEDs can be user-controlled (eg, with xset(1)).
#    Option     "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
#    Option     "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a European
# keyboard, you will probably want to use one of:
#
#    Option     "XkbModel"      "pc102"
#    Option     "XkbModel"      "pc105"
#
# If you have a Microsoft Natural keyboard, you can use:
#
#    Option     "XkbModel"      "microsoft"
#
# If you have a US "windows" keyboard you will want:
#
#    Option     "XkbModel"      "pc104"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#
#    Option     "XkbLayout"     "de"
#
# or:
#
#    Option     "XkbLayout"     "de"
#    Option     "XkbVariant"    "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#
#    Option     "XkbOptions"    "ctrl:swapcaps"
# These are the default XKB settings for X.Org
#
Identifier "Keyboard1"
Driver "kbd"
    Option     "XkbRules"      "xorg"
    Option     "XkbModel"      "pc104"
    Option     "XkbLayout"     "en_US,ru(winkeys)"
#    Option     "XkbVariant"    ""
    Option     "XkbOptions"    "grp:ctrl_shift_toggle,grp_led:scroll"
#	Identifier  "Keyboard1"
#	Driver      "Keyboard"
EndSection

Section "InputDevice"

# Identifier and driver
# On platforms where PnP mouse detection is supported the following
# protocol setting can be used when using a newer PnP mouse:
#    Option     "Protocol"      "Auto"
# The available mouse protocols types that you can set below are:
#    Auto BusMouse GlidePoint GlidePointPS/2 IntelliMouse IMPS/2
#    Logitech Microsoft MMHitTab MMSeries Mouseman MouseManPlusPS/2
#    MouseSystems NetMousePS/2 NetScrollPS/2 OSMouse PS/2 SysMouse
#    ThinkingMouse ThinkingMousePS/2 Xqueue
# which is usually a symbolic link to the real device.
#   Option "Device"      "/dev/ttyS0"
#   Option "Device"      "/dev/ttyS1"
# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.
#    Option "Protocol"	"Xqueue"
# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.
#    Option "BaudRate"		"9600"
#    Option "SampleRate"	"150"
# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)
#    Option "Emulate3Buttons"
#    Option "Emulate3Timeout"    "50"
# ChordMiddle is an option for some 3-button Logitech mice
#    Option "ChordMiddle"
	Identifier  "Mouse1"
	Driver      "mouse"
	Option	    "Protocol" "Auto"
# The mouse device.  The device is normally set to /dev/mouse,
	Option	    "Device" "/dev/ttyS0"
#   Option "Device"      "/dev/psaux"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option	    "XkbModel"	 "pc104"
	Option	    "XkbLayout"	 "en_US,ru(winkeys)"
#	Option      "XkbVariant"	""
	Option      "XkbOptions"	"grp:ctrl_shift_toggle,grp_led:scroll"	
EndSection

Section "Monitor"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
#    HorizSync	30-64         # multisync
#    HorizSync	31.5, 35.2    # multiple fixed sync frequencies
#    HorizSync	15-25, 30-50  # multiple ranges of sync frequencies
# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
	Identifier   "My Monitor"
	HorizSync    30.0 - 70.0
	VertRefresh  50.0 - 150.0
EndSection

Section "Device"

    #VideoRam    4096
    # Insert Clocks lines here if appropriate
	Identifier  "NV AGP"
	Driver      "nvidia"
#	ChipSet     "GeForce4 MX 440"
	Card        "nvidia"
EndSection

Section "Screen"

# If your card can handle it, a higher default color depth (like 24 or 32)
# is highly recommended.
#   DefaultDepth 8
#   DefaultDepth 16
#   DefaultDepth 32
# "1024x768" is also a conservative usable default resolution.  If you
# have a better monitor, feel free to try resolutions such as
# "1152x864", "1280x1024", "1600x1200", and "1800x1400" (or whatever your
# card/monitor can produce)
	Identifier "Screen 1"
	Device     "NV AGP"
	Monitor    "My Monitor"
	DefaultDepth     24
	SubSection "Display"
		Depth     8
		Modes    "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes    "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes    "1024x768" "800x600" "640x480" "640x400"
	EndSubSection
	SubSection "Display"
		Depth     32
		Modes    "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

SeRj0
() автор топика
Ответ на: комментарий от SeRj0

Зайди в новое faq и прочитай вопросы про раскладки.

Ты пишешь дурь.

jackill ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.