Jun's Blog

Output, activities, memo and etc.

i3: Set up Czech input environment 3

Last time I shared the top of Czech input environment here.

I see the Czech UCW keyborad is the best choice so far.

$ vi .config/i3/config
...
exec --no-startup-id "setxkbmap -layout us,cz -variant ,ucw -option grp:caps_switch"
...
$ setxkbmap -query 
rules:      evdev
model:      pc105
layout:     us,cz
variant:    ,ucw
options:    grp:caps_switch

The last challenge is the case: á = caps (switch) + a. I need another switch. On my current keyboard, I used the PrtSc key as a switch by the following setting.

On the command, it is like this.

$ xmodmap -e 'keycode 107 = Mode_switch Sys_Req Mode_switch Sys_Req'

Here is the config file.

$ cat ~/.Xmodmap 
! Use PrtSc key as keyboard layout switch key.
keycode 107 = Mode_switch Sys_Req Mode_switch Sys_Req