Current xkbmap / X.org kb layout switching ?
In fluxbox I use key combinations to switch to kb layouts with setxkbmap. I'd like to have 2 xkbmaps and with one key combination(like Alt+Shift) switch them. I need to know which one is currently active to select another... how can i het current xkbmap ? Or I somewhere read that if I specify more layouts in "XkbLayout" in xorg.conf, it's possible to switch between them through X... any ideas appreciated.
|
You could create an environment variable which you export each time you change maps. Then read the variable to see which one is currently loaded.
|
That's not exactly what I wanted, but I guess it will do...
|
Solved.
OK, there are 2 ways. First is the script that greps layout from 'setxkbmap -v' and second(one I was looking for) - edit /etc/X11/xorg.conf (or /etc/X11/XF86Config-4) : Code:
Section "InputDevice" |
All times are GMT -5. The time now is 05:37 AM. |