On Thu, May 27, 2010 at 04:35:29PM +0200, orsch...@googlemail.com wrote: > Ah sorry my fault, accidentally I broke the line down with \. > > Nice your solution is working. :) > > But do you have any idea why toggling via evdev doesn't affect the > xkb_symbols line?
simply because "xkb_symbols" does not change when you toggle your keyboard layout dynamically via Alt-shift. Before and after toggling it contains the string "+pc+de+pl...." which simply says that you can toggle between de and pl layout, but does not tell you which one is currently active. Obviously if you toggle your keyboard using "setxkbmap" directly, then xkb_symbols changes from "+pc+de" to "+pc+pl". >From "man setxkbmap" you can see that "setxkbmap -print" is actually intended to be piped into xkbcomp and not for determining the current state of the keyboard.