Friday, October 15, 2010

Cygwin/X Keyboard Layout Switching

The current Cygwin X server supports keyboard layouts! what a nice surprise! and it can all be configured at the command line!

Here's how I launch X on my wife's new laptop, with two keyboard layouts (us/il) and SHIFT-CAPS used to switch between layouts:
C:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c '/usr/bin/startxwin -- -xkblayout us,il -xkbmodel pc105 -xkbvariant ,lyx -xkboptions grp:shift_caps_toggle'
Ain't it cool?

(you've probably guessed by now: I suffer from an extreme case of sleep deprivation)

1 comment: