Re: [dev] wmii hardware keyboard shortcut layout at boot problem

From: Benjamin R. Haskell <suckless_AT_benizi.com>
Date: Tue, 22 Mar 2011 01:21:13 -0400 (EDT)

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
Received on Tue Mar 22 2011 - 06:21:13 CET

This archive was generated by hypermail 2.2.0 : Tue Mar 22 2011 - 06:24:02 CET