diff options
-rw-r--r-- | geometry/pc | 381 | ||||
-rw-r--r-- | rules/0001-lists.part | 2 | ||||
-rw-r--r-- | rules/base.xml | 21 |
3 files changed, 403 insertions, 1 deletions
diff --git a/geometry/pc b/geometry/pc index 1bb925de..f64b94fa 100644 --- a/geometry/pc +++ b/geometry/pc @@ -664,6 +664,226 @@ xkb_geometry "pc105" { }; // End of "pc105" geometry +// Added for Japanese 106 keyboard by <tsuka(at)kawalab.dnj.ynu.ac.jp>. +xkb_geometry "jp106" { + + description= "Japanese 106"; + width= 470; + height= 180; + + shape.cornerRadius= 1; + shape "NORM" { { [ 18,18] }, { [2,1], [ 16,17] } }; + shape "BKSP" { { [ 18,18] }, { [2,1], [ 16,17] } }; + shape "TABK" { { [ 28,18] }, { [2,1], [ 26,17] } }; + shape "BKSL" { { [ 27,18] }, { [2,1], [ 25,17] } }; + shape "RTRN" { + { [0,0],[ 27,0],[27,37],[4,37],[4,18],[0,18] } , + { [2,1],[ 25,1],[25,36],[5,36],[5,17],[2,17] } }; + shape "CAPS" { { [ 32,18] }, { [2,1], [ 30,17] } }; + shape "LFSH" { { [ 42,18] }, { [2,1], [ 40,17] } }; + shape "RTSH" { { [ 32,18] }, { [2,1], [ 30,17] } }; + shape "MODK" { { [ 28,18] }, { [2,1], [ 26,17] } }; + shape "SPCE" { { [ 46,18] }, { [2,1], [ 44,17] } }; + shape "KP0" { { [ 37,18] }, { [2,1], [ 35,17] } }; + shape "KPAD" { { [ 18,37] }, { [2,1], [ 16,36] } }; + + shape "LEDS" { cornerRadius= 0, { [ 76 ,20 ] } }; + shape "LED" { cornerRadius= 0, { [ 5, 1 ] } }; + solid "LedPanel" { + shape= "LEDS"; + top= 25; + left= 375; + color= "grey10"; + }; + + indicator.onColor= "green"; + indicator.offColor= "green30"; + indicator.top= 40; + indicator.shape= "LED"; + indicator "Num Lock" { left= 379; }; + indicator "Caps Lock" { left= 404; }; + indicator "Scroll Lock" { left= 429; }; + text.top= 28; + text.color= "black"; + text "NumLockLabel" { left= 378; text="Num\nLock"; }; + text "CapsLockLabel" { left= 403; text="Caps\nLock"; }; + text "ScrollLockLabel" { left= 428; text="Scroll\nLock"; }; + + section.left= 19; + row.left= 1; + key.shape= "NORM"; + key.gap= 1; + section "Function" { + top= 25; + row { + top= 1; + keys { { <ESC>, color="grey20" }, + { <FK01>, 18 }, <FK02>, <FK03>, <FK04>, + { <FK05>, 11 ,color="grey20"}, {<FK06>,color="grey20"}, + { <FK07>, color="grey20"}, {<FK08>,color="grey20"}, + { <FK09>, 11 }, <FK10>, <FK11>, <FK12>, + { <PRSC>, 8 }, <SCLK>, <PAUS> + }; + }; + }; // End of "Function" section + + section "Alpha" { + top= 61; + row { + top= 1; + keys { {<HZTG>,color="grey20"}, <AE01>, <AE02>, + <AE03>, <AE04>, <AE05>, <AE06>, <AE07>, + <AE08>, <AE09>, <AE10>, <AE11>, <AE12>, + <AE13>, { <BKSP>, "BKSP", color="grey20" } + }; + }; + row { + top= 20; + keys { { <TAB>, "TABK", color="grey20" }, + <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, + <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, + <AD11>, <AD12>, { <RTRN>, 1 ,"RTRN",color="grey20" } + }; + }; + row { + top= 39; + keys { { <CAPS>, "CAPS", color="grey20" }, + <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, + <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, + <AC11>, <AC12> + }; + }; + row { + top= 58; + keys { { <LFSH>, "LFSH", color="grey20" }, + <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, + <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, + <AB11>, { <RTSH>, "RTSH", color="grey20" } + }; + }; + row { + top= 77; + key.shape= "MODK"; + key.color= "grey20"; + keys { <LCTL>, { <LALT>, 20 },<NFER>, + { <SPCE>, "SPCE", color="white" }, + <XFER>,<HKTG>,<RALT>, { <RCTL>, 17 } + }; + }; + }; // End of "Alpha" section + + section "Editing" { + top= 61; + left= 310; + key.color= "grey20"; + row { + top= 1; + keys { <INS>, <HOME>, <PGUP> }; + }; + row { + top= 20; + keys { <DELE>, <END>, <PGDN> }; + }; + row { + top= 58; + left= 20; + keys { <UP> }; + }; + row { + top= 77; + keys { <LEFT>, <DOWN>, <RGHT> }; + }; + }; // End of "Editing" section + + section "Keypad" { + top= 61; + left= 375; + row { + top= 1; + key.color= "grey20"; + keys { <NMLK>, <KPDV>, <KPMU>, <KPSU> }; + }; + row { + top= 20; + keys { <KP7>, <KP8>, <KP9>, { <KPAD>, "KPAD", color="grey20" } }; + }; + row { + top= 39; + keys { <KP4>, <KP5>, <KP6> }; + }; + row { + top= 58; + keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPAD", color="grey20" } }; + }; + row { + top= 77; + keys { { <KP0>, "KP0" }, <KPDL> }; + }; + }; // End of "Keypad" section + + alias <AC00> = <CAPS>; + alias <AA00> = <LCTL>; + +}; // End of "jp106" geometry + +// Added for Brazilian ABNT2 by Ricardo Y. Igarashi <iga(at)that.com.br>. +xkb_geometry "abnt2" { + include "pc(pc105)" + + description= "Brazilian ABNT2"; + + shape "RTRN" { + { [0,0],[ 28,0],[28,37],[4,37],[4,18],[0,18] } , + { [2,1],[ 26,1],[26,36],[5,36],[5,18],[2,18] } }; + shape "RTSH" { { [ 31,18] }, { [2,1], [ 29,16] } }; + + section.left= 19; + row.left= 1; + key.shape= "NORM"; + key.gap= 1; + section "Alpha" { + top= 61; + row { + top= 20; + keys { { <TAB>, "TABK", color="grey20" }, + <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, + <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, + <AD11>, <AD12>, { <RTRN>, "RTRN", color="grey20" } + }; + }; + row { + top= 39; + keys { { <CAPS>, "CAPS", color="grey20" }, + <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, + <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, + <AC11>, <BKSL> + }; + }; + row { + top= 58; + keys { { <LFSH>, "LFSH", color="grey20" }, + <LSGT>, <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, + <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, <AB11>, + { <RTSH>, "RTSH", color="grey20" } + }; + }; + }; // End of "Alpha" section + + section "Keypad" { + top= 61; + left= 376; + row { + top= 20; + keys { <KP7>, <KP8>, <KP9>, { <KPAD>, color="grey20" } }; + }; + row { + top= 39; + keys { <KP4>, <KP5>, <KP6>, { <KPPT>, color="grey20" } }; + }; + }; // End of "Keypad" section + +}; // End of "abnt2" geometry + // Created by Alexander Pohoyda <alexander.pohoyda@gmx.net> xkb_geometry "pc86" { @@ -833,6 +1053,167 @@ xkb_geometry "pc86" { alias <AA00> = <LCTL>; }; // End of "pc86" geometry +xkb_geometry "kr106" { + + description= "Korean 106"; + width= 470; + height= 180; + + shape.cornerRadius= 1; + shape "NORM" { { [ 18,18] }, { [2,1], [ 16,16] } }; + shape "BKSP" { { [ 38,18] }, { [2,1], [ 36,16] } }; + shape "TABK" { { [ 28,18] }, { [2,1], [ 26,16] } }; + shape "BKSL" { { [ 28,18] }, { [2,1], [ 26,16] } }; + shape "RTRN" { { [ 42,18] }, { [2,1], [ 40,16] } }; + shape "CAPS" { { [ 33,18] }, { [2,1], [ 31,16] } }; + shape "LFSH" { { [ 42,18] }, { [2,1], [ 40,16] } }; + shape "RTSH" { { [ 52,18] }, { [2,1], [ 50,16] } }; + shape "MODK" { { [ 27,18] }, { [2,1], [ 25,16] } }; + shape "SMOD" { { [ 23,18] }, { [2,1], [ 21,16] } }; + shape "SPCE" { { [ 75,18] }, { [2,1], [ 73,16] } }; + shape "KP0" { { [ 37,18] }, { [2,1], [ 35,16] } }; + shape "KPAD" { { [ 18,37] }, { [2,1], [ 16,35] } }; + + shape "LEDS" { cornerRadius= 0, { [ 75 ,20 ] } }; + shape "LED" { cornerRadius= 0, { [ 5, 1 ] } }; + solid "LedPanel" { + shape= "LEDS"; + top= 22; + left= 377; + color= "grey10"; + }; + + indicator.onColor= "green"; + indicator.offColor= "green30"; + indicator.top= 37; + indicator.shape= "LED"; + indicator "Num Lock" { left= 382; }; + indicator "Caps Lock" { left= 407; }; + indicator "Scroll Lock" { left= 433; }; + text.top= 25; + text.color= "black"; + text "NumLockLabel" { left= 378; text="Num\nLock"; }; + text "CapsLockLabel" { left= 403; text="Caps\nLock"; }; + text "ScrollLockLabel" { left= 428; text="Scroll\nLock"; }; + + section.left= 19; + row.left= 1; + key.shape= "NORM"; + key.gap= 1; + section "Function" { + top= 22; + row { + top= 1; + keys { { <ESC>, color="grey20" }, + { <FK01>, 20 }, <FK02>, <FK03>, <FK04>, + { <FK05>, 11 }, <FK06>, <FK07>, <FK08>, + { <FK09>, 11 }, <FK10>, <FK11>, <FK12>, + { <PRSC>, 8 }, <SCLK>, <PAUS> + }; + }; + }; // End of "Function" section + + section "Alpha" { + top= 61; + row { + top= 1; + keys { <TLDE>, <AE01>, <AE02>, <AE03>, <AE04>, + <AE05>, <AE06>, <AE07>, <AE08>, <AE09>, + <AE10>, <AE11>, <AE12>, + { <BKSP>, "BKSP", color="grey20" } + }; + }; + row { + top= 20; + keys { { <TAB>, "TABK", color="grey20" }, + <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, + <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, + <AD11>, <AD12>, { <BKSL>, "BKSL" } + }; + }; + row { + top= 39; + keys { { <CAPS>, "CAPS", color="grey20" }, + <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, + <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, + <AC11>, { <RTRN>, "RTRN", color="grey20" } + }; + }; + row { + top= 58; + keys { { <LFSH>, "LFSH", color="grey20" }, + <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, + <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, + { <RTSH>, "RTSH", color="grey20" } + }; + }; + row { + top= 77; + key.shape= "SMOD"; + key.color= "grey20"; + keys { { <LCTL>, "MODK" }, <LWIN>, <LALT>, + { <K71>, "NORM", color="white" }, + { <SPCE>, "SPCE", color="white" }, + { <K72>, "NORM", color="white" }, + <RALT>, <RWIN>, <MENU>, <RCTL> + }; + }; + }; // End of "Alpha" section + + section "Editing" { + top= 61; + left= 312; + key.color= "grey20"; + row { + top= 1; + keys { <INS>, <HOME>, <PGUP> }; + }; + row { + top= 20; + keys { <DELE>, <END>, <PGDN> }; + }; + row { + top= 58; + left= 20; + keys { <UP> }; + }; + row { + top= 77; + keys { <LEFT>, <DOWN>, <RGHT> }; + }; + }; // End of "Editing" section + + section "Keypad" { + top= 61; + left= 376; + row { + top= 1; + key.color= "grey20"; + keys { <NMLK>, <KPDV>, <KPMU>, <KPSU> }; + }; + row { + top= 20; + keys { <KP7>, <KP8>, <KP9>, { <KPAD>, "KPAD", color="grey20" } }; + }; + row { + top= 39; + keys { <KP4>, <KP5>, <KP6> }; + }; + row { + top= 58; + keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPAD", color="grey20" } }; + }; + row { + top= 77; + keys { { <KP0>, "KP0" }, <KPDL> }; + }; + }; // End of "Keypad" section + + alias <AC00> = <CAPS>; + alias <AA00> = <LCTL>; + +}; // End of "kr106" geometry + xkb_geometry "pc104alt" { description= "Generic 104-key PC with L-shaped Enter key"; diff --git a/rules/0001-lists.part b/rules/0001-lists.part index e3f4baef..d24430c8 100644 --- a/rules/0001-lists.part +++ b/rules/0001-lists.part @@ -6,7 +6,7 @@ // pk rs ru sy th tj tz ua uz // PC models -! $pcmodels = pc86 pc101 pc102 pc104 pc104alt pc105 +! $pcmodels = abnt2 jp106 kr106 pc86 pc101 pc102 pc104 pc104alt pc105 // Jolla devices and keyboards ! $jollamodels = jollasbj diff --git a/rules/base.xml b/rules/base.xml index 03b80726..65bb4b41 100644 --- a/rules/base.xml +++ b/rules/base.xml @@ -166,6 +166,13 @@ </model> <model> <configItem> + <name>abnt2</name> + <description>Brazilian ABNT2</description> + <vendor>Generic</vendor> + </configItem> + </model> + <model> + <configItem> <name>brother</name> <description>Brother Internet</description> <vendor>Brother</vendor> @@ -677,6 +684,13 @@ </model> <model> <configItem> + <name>jp106</name> + <description>Japanese 106-key</description> + <vendor>Generic</vendor> + </configItem> + </model> + <model> + <configItem> <name>flexpro</name> <description>Keytronic FlexPro</description> <vendor>Keytronic</vendor> @@ -691,6 +705,13 @@ </model> <model> <configItem> + <name>kr106</name> + <description>Korean 106-key</description> + <vendor>Generic</vendor> + </configItem> + </model> + <model> + <configItem> <name>logitech_base</name> <description>Logitech</description> <vendor>Logitech</vendor> |