On Wed, May 11, 2011 at 00:39, Duncan <1i5t5.duncan@xxxxxxx> wrote: > If you're trying to configure different models of physical keyboard, > that's accomplished thru xorg.conf(.d) hotplugging configuration, these > days (since xorg-server-1.8). ÂYou can even plug multiple keyboards in at > once and have them each IDed and assigned the appropriate variants as > necessary. =:^) > Thanks, but I am in fact working with one physical keyboard. I currently use the US, Hebrew, and Russian layouts. The wife uses only the first two. I need to add this Noah layout (my own design) to ease the burden on some weak fingers. There are tons of resources online for creating custom layouts, but nothing addresses the modifier keys or Caps. I'm pretty certain if we can swap Caps_Lock and B then I can figure the rest out. > If instead you're wanting different settings for the same device, perhaps > for different users, that's a bit different. Âxmodmap can be used there, > at runtime, either set to run when a user logs in, or setup using several > scripts that can be invoked as needed to switch settings. ÂHowever, I > should mention that I've never actually used xmodmap myself, only read > about it. ÂThere's a manpage for it, tho... > Yes, and the examples are pretty good. I was able to get the Caps_Lock key to function as a perfect B, and B to function as a broken Caps_Lock, by swapping the scancodes for the two keys and adding some statements at the end: ..snip.. keycode 56 = b B b B // was 66 ..snip.. keycode 66 = Caps_Lock NoSymbol Caps_Lock // was 56 ..snip.. remove Lock = Caps_Lock keysym b = Caps_Lock keysym B = Caps_Lock add Lock = Caps_Lock However, although the B key now engages Caps_Lock, pressing the key again does not disengage it! Nor does pressing the Caps_Lock key (which now is B). How can we overcome this? > There's also an app (referred to in the see also section of the xmodmap > manpage) called setxkbmap, but I don't have it or its manpage installed > and have never used it, so... > Yes, that is how I'm loading the keymap that I was referring to above. I enable standard US layout like this: âdemios:~$ setxkbmap -layout us Then export it to a file: âdemios:~$ xmodmap -pke > noah Then do the mods that I mentioned above: âdemios:~$ vi noah Then load the file: âdemios:~$ xmodmap noah Thanks for your insight, Duncan. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___________________________________________________ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.