LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2006, 12:27 PM   #1
yacccobb
LQ Newbie
 
Registered: Oct 2005
Distribution: Debian
Posts: 10

Rep: Reputation: 0
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.
 
Old 08-04-2006, 01:15 AM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
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.
 
Old 08-04-2006, 04:45 AM   #3
yacccobb
LQ Newbie
 
Registered: Oct 2005
Distribution: Debian
Posts: 10

Original Poster
Rep: Reputation: 0
That's not exactly what I wanted, but I guess it will do...
 
Old 08-21-2006, 04:15 AM   #4
yacccobb
LQ Newbie
 
Registered: Oct 2005
Distribution: Debian
Posts: 10

Original Poster
Rep: Reputation: 0
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"
# ...

Option	"XkbLayout"	"us,cz_qwerty"
Option	"XkbOptions"	"grp:alt_shift_toggle,grp_led:scroll"
EndSection
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard layout switching problems OpossumPetya SUSE / openSUSE 1 01-01-2006 05:33 PM
Keyboard layout switching in KDE kornerr Linux - General 2 02-04-2005 09:16 AM
keyboard layout is switching goestin Linux - General 0 11-23-2004 09:38 AM
X.org keyboard layout problem drigz Linux - Software 4 08-20-2004 07:27 AM
Switching to a Dvorak keyboard layout. ImAfrEaK Linux - Newbie 1 03-29-2004 09:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration