You are not logged in.

#1 2009-10-21 19:54:44

Mr.Cat
Member
Registered: 2008-09-27
Posts: 79

[SOLVED]Per window keyboard layout

What is the right way to have per-window keyboard layout? The layouts are configured via /etc/hal/fdi/policy/10-keymap.fdi. No gnome/kde - just xmonad.

Last edited by Mr.Cat (2009-10-26 20:51:25)

Offline

#2 2009-10-25 22:26:10

Mr.Cat
Member
Registered: 2008-09-27
Posts: 79

Re: [SOLVED]Per window keyboard layout

Seems, I'll have to answer this question myself. One way is to use xxkb. You should start it when your system starts (e.g. in .xinitrc). Its config (~/.xxkbrc) might look like this:

XXkb.controls.two_state: no
XXkb*label.text.1: E
XXkb*label.text.2: R
XXkb*label.text.3: H
XXkb.mainwindow.type: tray
XXkb.mainwindow.label.enable: yes
XXkb.mainwindow.enable: yes
XXkb.mainwindow.appicon: no
XXkb.mainwindow.geometry: 12x14+0+0
XXkb.mainwindow.label.background: black
XXkb.mainwindow.label.foreground: white
XXkb.mainwindow.label.font: xft:Monospace-11
XXkb.button.enable: no

Check out man xxkb for further information.

Last edited by Mr.Cat (2009-10-25 22:26:34)

Offline

Board footer

Powered by FluxBB