The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Keyboard layout change problem

asked Mar 15 '13

hariskar gravatar image

I can not toggle keyboard layout English-Greek. I have tried in xinitrc

setxkbmap -option grp:switch,grp:alt_shift_toggle us,el

it works only with left alt_shift, both directions us>gr, gr>us, but breaks right Alt shortcuts

setxkbmap -option grp:switch,grp:lalt_shift_toggle,grp_led:scroll us,gr

does not work and breaks right Alt shortcuts

setxkbmap -option grp:switch,grp:Super_L_shift_toggle,grp_led:scroll us,gr

does not work and breaks right Alt shortcuts My mod is Mod1 So now I am doing it from console with setxkbmap us/gr Any solution? Thank you

2 answers

Sort by » oldest newest most voted
0

answered Apr 23 '13

Try to add these lines to your /etc/X11/xorg.conf and you don't need to use "setxkbmap"

Section "InputClass"
          Identifier "keyboard-all"
          Driver "evdev"
          Option "XkbLayout"    "us,gr"
          Option "XkbOptions"   "grp:alt_shift_toggle,grp_led:scroll"
          MatchIsKeyboard "on"
EndSection
0

answered Apr 22 '13

matma6 gravatar image

I do it that way:

bindsym Ctrl+Shift+1 exec --no-startup-id setxkbmap us -variant colemak
bindsym Ctrl+Shift+2 exec --no-startup-id setxkbmap pl

Question Tools

1 follower

Stats

Asked: Mar 15 '13

Seen: 5,141 times

Last updated: Apr 23 '13