Keymapping for Ubuntu

52 views
Skip to first unread message

Ben Hiett

unread,
Feb 28, 2013, 5:18:26 PM2/28/13
to minimak...@googlegroups.com
I've managed to get minimak keymapping working nicely under ubuntu such that you can load it from System Settings->Keyboard Layout dialog

Then you can switch at will from the task bar

Have only done Minimak-4 so far but could do the rest

requires modification of:
/usr/share/X11/xkb/symbols/gb
/usr/share/X11/xkb/symbols/rules/evdev.xml

as per these instructions:

http://ubuntuforums.org/showthread.php?t=1654199&highlight=.Xmodmap

i created a gb-minimak file in symbols dir as folows:

// based on a keyboard map from an 'xkb/symbols/gb' file

partial default alphanumeric_keys
xkb_symbols "basic" {

    // Describes the differences between a very simple en_US
    // keyboard and a very simple U.K. keyboard layout defined by
    // the SVR4 European Language Supplement and sometimes also
    // known as the IBM 166 layout.

    include "latin"

    name[Group1]="English (UK, Minimak-4";

    key <AC03> { [   t,                 T,          eacute,      Eacute ] };
    key <AC08> { [   e,                 E,          eacute,      Eacute ] };
   
    key <AD03> { [   d,                 D,          eacute,      Eacute ] };
    key <AD05> { [   k,                 K,          eacute,      Eacute ] };
   
    key <AE02>    { [         2,   quotedbl,  twosuperior,    oneeighth ]    };
    key <AE03>    { [         3,   sterling, threesuperior,    sterling ]    };
    key <AE04>    { [         4,     dollar,     EuroSign,   onequarter ]    };

    key <AC11>    { [apostrophe,         at, dead_circumflex, dead_caron]    };
    key <TLDE>    { [     grave,    notsign,          bar,          bar ]    };

    key <BKSL>    { [numbersign, asciitilde,   dead_grave,   dead_breve ]    };
    key <LSGT>    { [ backslash,        bar,          bar,    brokenbar ]    };

    include "level3(ralt_switch_multikey)"
};


and added a snippet to evdev.xml:

    <layout>
      <configItem>
        <name>gb-minimak</name> <!-- 1) -->
        <shortDescription>en-m4</shortDescription> <!-- 2) -->
        <description>English (UK, Minimak-4)</description> <!-- 3) -->
        <languageList><iso639Id>eng</iso639Id></languageList> <!-- 4) -->
      </configItem>
    </layout>



Reply all
Reply to author
Forward
0 new messages