Switching keyboard layouts



OpenID Login [?]
Identity URL:


Remember me
All timestamps are based on your local time of:

On X, you can switch keyboard layouts using the "setxkbmap" command. I created the following two scripts in my ~/bin directory and made them executable:

~/bin/asdf:

setxkbmap dvorak


~/bin/aoeu:

setxbmap us



That way, if I'm using the regular "us" layout, and I type the command "asdf", it will switch me to dvorak. And if I'm in dvorak, and type the "aoeu" command, it will switch me back to us layout.

[ Add a new comment ]

 
 
(c) Kartikaya Gupta, 2004-2010. User comments owned by their respective posters. All rights reserved. Secure site.