On Mon, 21 Mar 2011, Eitan Goldshtrom wrote:

I set the keyboard layout to Dvorak with the KEYBOARD variable in rc.conf.

When I start wmii though all my keyboard shortcuts are set to the hardware 
keys, which are QWERTY.
I'm using Arch Linux and I installed xbindkeys, or at least some X package, to 
get the shortcuts to bind to the software layout. It works, but I have to run 
wmiirc through
the actions menu in order for it to work. I have to do it every single time I 
start up wmii -- it's kind of annoying. Anyone know how to fix this?

I've not used Arch Linux, but it sounds like the KEYBOARD variable sets the keyboard layout for the console, and that you need to set the layout for your X11 server.

I use a custom keyboard layout based on an old version of the XFree86 us-intl that has AltGr stuff and CapsLock as Compose. To set it up, I add (a script that calls) the following to my .xinitrc:

setxkbmap -model pc104 -layout benizi -variant intl -keycodes evdev -option '' 
-option lv3:ralt_switch -option altwin:super_win

for your case, maybe this would do:

setxkbmap -model pc104 -layout dvorak -variant intl -keycodes evdev

Putting it somewhere in 'startup()' as recently discussed on-list might also make sense.

(Of course, based on the fact that I find setxkbmap useful, Xorg has probably deprecated the mechanism behind it. YMMV,etc,etc)

--
Best,
Ben

Reply via email to