You are not logged in.

#1 2012-11-04 11:58:52

hrvladev
Member
Registered: 2012-11-04
Posts: 3

Keyboard layout problem.

Hello,

I'm an Arch Newbie and have this problem:

I want to have two keyboard layouts(en and bg) and to switch between them with alt+shift command. So i did everything as it is written here and everything works. I have two layouts and I switch between them with alt+shift.
But... when i try to move window to another desktop(e.g. ctrl+alt+shift) it doesn't work, it only changes my keyboard layout. And this is not the desired effect. It should only move my window to another desktop, without changing the layout.

The same thing happens if I use ctrl+shift. Then I can't paste in terminal with ctrl+shift+v. Only switches the keyboard layout...

I'm using this line:

setxkbmap -option grp:alt_shift_toggle us,bg

So that's it... May someone help me ? I'll be very thankful.

Cheers,
Hristo Vladev.

Offline

#2 2012-11-11 14:52:14

hrvladev
Member
Registered: 2012-11-04
Posts: 3

Re: Keyboard layout problem.

Anybody ?

Offline

#3 2012-11-11 15:05:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Keyboard layout problem.

I've never used setxkbmap, but can you use another tool to do the keybinding - like xbindkeys?

It sounds like it is grabbing those keys with AnyModifier rather than just those keys themselves, so the key press never gets to openbox as it is intercepted by setxkbmap.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2012-11-11 17:43:04

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 227

Re: Keyboard layout problem.

Another way.
Thinking that LXDE is using Openbox.
You can use ~/.config/openbox/rc.xml

http://openbox.org/wiki/Help:Bindings#Key_bindings

example: using the Windows key

<keybind key="W-u">
      <action name="Execute">
           <command>setxkbmap us<command>
      </action>
</keybind>
<keybind key="W-b">
      <action name="Execute">
           <command>setxkbmap bg<command>
      </action>
</keybind>

Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.

Offline

Board footer

Powered by FluxBB