arm-sdk

os build toolkit for various embedded devices
git clone https://git.parazyd.org/arm-sdk
Log | Files | Refs | Submodules | README | LICENSE

nokia (2679B)


      1 // The geomeries are zoomed about 3x because of text size in xkbprint. An
      2 // example for visualizing a keyboard layout is given below.
      3 //
      4 // setxkbmap -model nokiarm680 -layout us -print > rm680.xkb
      5 // xkbcomp rm680.xkb
      6 // xkbprint -color rm680.xkm
      7 
      8 xkb_geometry "nokiarm680" {
      9 
     10     description= "Nokia RM-680";
     11     width= 346.5; // 11x8.5mm + 2x11mm border
     12     height= 102.0; // 4x7mm + 2x3mm border
     13 
     14     shape.cornerRadius= 1.5;
     15     shape "NORM"  { { [25.5,21.0] } };
     16     shape "SPCE"  { { [76.5,21.0] } };
     17 
     18     section.left= 33.0;
     19     row.left= 0.0;
     20     key.shape= "NORM";
     21     key.gap= 0;
     22     section "Keys" {
     23 	top= 0;
     24 	row {
     25 	    top= 9.0;
     26 	    keys { <AD01>, <AD02>, <AD03>, <AD04>, <AD05>,
     27 		   <AD06>, <AD07>, <AD08>, <AD09>, <AD10>,
     28 		   { <BKSP>, "NORM", color="grey20" }
     29 	    };
     30 	};
     31 	row {
     32 	    top= 30.0;
     33 	    keys { <AC01>, <AC02>, <AC03>, <AC04>, <AC05>,
     34 		   <AC06>, <AC07>, <AC08>, <AC09>, <AC11>,
     35 		   { <RTRN>, "NORM", color="grey20" }
     36 	    };
     37 	};
     38 	row {
     39 	    top= 51.0;
     40 	    keys { <AB01>, <AB02>, <AB03>, <AB04>, <AB05>,
     41 		   <AB06>, <AB07>, <AB08>, <AB09>, <UP>,
     42 		   { <RCTL>, "NORM", color="grey20" }
     43 	    };
     44 	};
     45 	row {
     46 	    top= 72.0;
     47 	    keys { { <LWIN>, "NORM", color="grey20" },
     48 		   { <LFSH>, "NORM", color="grey20" },
     49 		   { <COMP>, "NORM", color="grey20" },
     50 		   <AB10>,
     51 		   { <SPCE>, "SPCE", color="white" },
     52 		   <AC12>,
     53 		   <LEFT>, <DOWN>, <RGHT>
     54 	    };
     55 	};
     56     }; // End of "Keys" section
     57 
     58 }; // End of "rm680" geometry
     59 
     60 xkb_geometry "nokiarx51" {
     61 
     62     description= "Nokia RX-51";
     63     width= 273; // 13x6mm + 2x1.5mm border + 2x5mm border
     64     height= 54; // 3x5mm + 2x1.5mm border
     65 
     66     shape.cornerRadius= 1.5;
     67     shape "NORM"  { { [18,15] } };
     68     shape "SPCE"  { { [36,15] } };
     69     shape "FRAME" { cornerRadius= 2.5, { [243,54] } };
     70 
     71     solid "FRAME" {
     72 	shape= "FRAME";
     73 	color= "white";
     74 	top= 0;
     75 	left= 15;
     76     };
     77 
     78     section.left= 15;
     79     row.left= 4.5;
     80     key.shape= "NORM";
     81     key.gap= 0;
     82     section "Keys" {
     83 	top= 0;
     84 	row {
     85 	    top= 4.5;
     86 	    keys { { <LCTL>, "NORM", color="grey20" },
     87 		   <AD01>, <AD02>, <AD03>, <AD04>, <AD05>,
     88 		   <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, <AB08>,
     89 		   { <BKSP>, "NORM", color="grey20" }
     90 	    };
     91 	};
     92 	row {
     93 	    top= 19.5;
     94 	    keys { { <RALT>, "NORM", color="grey20" },
     95 		   <AC01>, <AC02>, <AC03>, <AC04>, <AC05>,
     96 		   <AC06>, <AC07>, <AC08>, <AC09>, <AB09>, <UP>,
     97 		   { <RTRN>, "NORM", color="grey20" }
     98 	    };
     99 	};
    100 	row {
    101 	    top= 34.5;
    102 	    keys { { <LFSH>, "NORM", color="grey20" },
    103 		   <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, <AB06>, <AB07>,
    104 		   { <SPCE>, "SPCE", color="white" },
    105 		   <LEFT>, <DOWN>, <RGHT>
    106 	    };
    107 	};
    108     }; // End of "Keys" section
    109 
    110 }; // End of "rx51" geometry