Switching keyboard layouts



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-2018. User comments owned by their respective posters. All rights reserved.
You are accessing this website via IPv4. Consider upgrading to IPv6!