LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   switch keyboard shortcut (http://www.linuxquestions.org/questions/linux-software-2/switch-keyboard-shortcut-851398/)

DBabo 12-20-2010 11:05 AM

switch keyboard shortcut
 
hello,
I run KDE 3.X and for the life of it, can't figure out how to assign the "ALT+SHIFT" to switch between keyboard layouts? The default AL+SHIFT+K switches from EN to second one and after that it (obviously) doesn't work.
saw a few posts (http://www.linux-archive.org/gentoo-...alt-shift.html), but the flag is not changing in the tray.

I also tried to go thru "Keyboard shortcuts", but for whatever reason, it doesn't want to accept the combination of "alt+shift" and expects another key ( i guess).

I'm using Centos 5.2 and the the keyboard model is "MS natural keyboard pro" with US and two Cyrillic layouts - one of them is phonetic.

Please advise.
Andrew

DBabo 12-22-2010 08:11 AM

after some frustrating hours:
1. Disable the xkb
2. In Control Center-> REgional and Accessibility ->Keyboard shortcuts : I was finally able to change the behavior to right cntrl + menu.
Well, it's not what i wanted, but at least smth.
I also noticed that it ( this shortcut accepting dialog) is thinking that right shift has a different code ( Other_Region) then the left one ( Shift_L). It's strange because the hev reports the same codes :

Code:

KeyPress event, serial 28, synthetic NO, window 0x1800001,
    root 0x11e, subw 0x0, time 241804533, (91,-8), root:(1000,390),
    state 0x10, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x1800001,
    root 0x11e, subw 0x0, time 241804613, (91,-8), root:(1000,390),
    state 0x11, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 31, synthetic NO, window 0x1800001,
    root 0x11e, subw 0x0, time 241813044, (91,-8), root:(1000,390),
    state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x1800001,
    root 0x11e, subw 0x0, time 241813156, (91,-8), root:(1000,390),
    state 0x11, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False


DavidMcCann 12-22-2010 11:48 AM

You could take a key you never use, like Pause or Scroll Lock, and turn it into ISO_Next_Group. I also have the shifted version as ISO_Prev_Group. I do this by editing the keyboard driver files, but you could do it with xmodmap.


All times are GMT -5. The time now is 08:29 AM.