раскладка клавиатуры в Openbox
Опубликовано Mike в 25.04.2009 в 01:32
Как в openbox поменять клавиши изменения раскладки клавиатуры (en-rus) со стандартных Shift+Alt на привычные Shift+Ctrl?
Ось: Crunchbang Linux 8.10.02 (Ubuntu based, Eee PC edition)
никак, смирись
Это делается, не в настройках бокса, а в настройках иксов (/etc/X11/). У меня настройки клавиатуры такие:
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,ru"
Option "XkbVariant" ",winkeys"
Option "XkbOptions" "grp:ctrl_shift_toggle"
EndSection
пробовал уже править - не помогает. По умолчанию там вообще нет секции "InputDevice"((
допиши или смирись
даня, задрал. нечего сказать на заборах пиши
hal рулит и педалит =)
Смотри в настройках hal
p.s опередили
danya@asus-finincor:~$ cat /etc/X11/
# (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the manual page.
# (Type "man " at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "Device"
Identifier "Configured Video Device"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection
Стоит по дефолту, переключалка работает. ЧТЯДН?
Этот файл нужен для переопределения дефолтных настроек. Поэтому он пустой почти. Заботливые ребята из каноникал не зря пишут каменты в конфиге.
danya@dell-kubuntu:~$ cat /etc/X11/
# **********************************************************************
# Monitor section
# **********************************************************************
# Any number of monitor sections may be present
# **********************************************************************
# Graphics device section
# **********************************************************************
# Any number of graphics device sections may be present
# **********************************************************************
# Screen sections.
# **********************************************************************
Section "ServerLayout"
# The Identifier line must be present
Identifier "Main Layout"
Screen 0 "Screen 1" 0 0
EndSection
Section "Files"
EndSection
Section "Module"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
Load "i2c"
Load "ddc"
Load "vbe"
Load "dri"
EndSection
Section "ServerFlags"
Option "AllowMouseOpenFail" "true"
EndSection
Section "Monitor"
Identifier "Generic Monitor"
HorizSync 28.0 - 80.0
VertRefresh 43.0 - 60.0
EndSection
Section "Device"
#Option "RenderAccel" "on"
Identifier "VESA"
Driver "radeon"
Option "XAANoOffscreenPixmaps"
Option "BusType" "PCI"
Option "ColorTiling" "on"
Option "EnablePageFlip" "on"
Option "UseEvents" "True"
BusID "PCI:1:5:0"
EndSection
Section "Screen"
# The Identifier, Device and Monitor lines must be present
Identifier "Screen 1"
Device "VESA"
Monitor "Generic Monitor"
DefaultDepth 24
Option "AddARGBGLXVisuals" "true"
# The favoured Depth and/or Bpp may be specified here
SubSection "Display"
#Modes "1024x768" "800x600" "640x480"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
#Modes "1024x768" "800x600" "640x480"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
#Modes "1024x768" "800x600" "640x480"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
а вот так дома. Что скажете, телепаты?
Даня, что дома у тебя ати и без нормального иксорга никак
Как вариант: в ~/.config/openbox/ допиши:
setxkbmap -layout "us,ru(winkeys)" -model "pc105" -option "grp:ctrl_shift_toggle" &
даня, смотри мою ссылку. там всё написано.
#6
так работает новый x-server - он сам генерит нужные конфиги и они теперь по разным дыркам запиханы (это можно отключить в ), но приоритет всё равно . Если там что напишешь, то это будет работать.
так а я про чо?
в третьем ответе все правильно написано, зачем гонять человека по ссылкам, пусть сразу делает как правильно.
помогла прописка в ~/.config/openbox/ следующей строчки:
setxkbmap -layout "us,ru(winkeys)" -option "grp:ctrl_shift_toggle" &
Правда теперь раскладка у меня переключается и Shift+Ctrl, и Shift+Alt :D
P.S. кстати, у меня Asus Eee PC, а клавиатура там никак не "pc105" ;)))
а можно ещё коммандой:
sudo dpkg-reconfigure xserver-xorg
Настройки монитора, клавиатуры, мыши и проч.
А scim? Намного легче чем всё что вы предлагаете.