
// based on
// Lithuanian keyboard map by Ričardas Čepas <rch@richard.eu.org>
// merged into one file by Nerijus Baliūnas
//
// $XFree86: xc/programs/xkbcomp/symbols/pc/lt,v 1.4 2003/04/19 12:22:12 pascal Exp $

// If you want to have 2 layouts, use
// Option "XkbLayout" "lt,lt(lt_us)"

// Lithuanian Baltic layout - Lithuanian letters on the numeric row
partial default alphanumeric_keys modifier_keys
xkb_symbols "basic" {

    include "pc/latin"

    name[Group1]="Lithuanian";

    key <AE01>	{ [   aogonek,      Aogonek ]	};
    key <AE02>	{ [    ccaron,       Ccaron ]	};
    key <AE03>	{ [   eogonek,      Eogonek ]	};
    key <AE04>	{ [ eabovedot,    Eabovedot ]	};
    key <AE05>	{ [   iogonek,      Iogonek ]	};
    key <AE06>	{ [    scaron,       Scaron ]	};
    key <AE07>	{ [   uogonek,      Uogonek ]	};
    key <AE08>	{ [   umacron,      Umacron ]	};
    key <AE09>	{ [doublelowquotemark,  parenleft ] };
    key <AE10>	{ [leftdoublequotemark,parenright ] };
    key <AE12>	{ [    zcaron,       Zcaron ]	};

    key <LSGT>	{ [    endash,   EuroSign   ]	};

    include "level3(ralt_switch_multikey)"
};

// Similar to the above, but you should use Right Alt + numeric row
// for Lithuanian letters
partial default alphanumeric_keys modifier_keys
xkb_symbols "lt_us" {

    include "pc/latin"

    name[Group1]="Lithuanian";

    key <AE01>	{ [         1,     exclam,      aogonek,      Aogonek ]	};
    key <AE02>	{ [         2,         at,       ccaron,       Ccaron ]	};
    key <AE03>	{ [         3, numbersign,      eogonek,      Eogonek ]	};
    key <AE04>	{ [         4,     dollar,    eabovedot,    Eabovedot ]	};
    key <AE05>	{ [         5,    percent,      iogonek,      Iogonek ]	};
    key <AE06>	{ [         6, asciicircum,      scaron,       Scaron ]	};
    key <AE07>	{ [         7,  ampersand,      uogonek,      Uogonek ]	};
    key <AE08>	{ [         8,   asterisk,      umacron,      Umacron ]	};
    key <AE09>	{ [         9,  parenleft, doublelowquotemark,  parenleft ] };
    key <AE10>	{ [         0, parenright, leftdoublequotemark,parenright ] };
    key <AE12>	{ [     equal,       plus,       zcaron,       Zcaron ]	};

    key <AD03>	{ [         e,          E,       endash,     EuroSign ]	};
    key <LSGT>	{ [    endash,   EuroSign ]	};

    include "level3(ralt_switch_multikey)"
};

// Lithuanian keyboard map by Gediminas Paulauskas <menesis@delfi.lt>
// Minor modification by Ričardas Čepas according to http://sun3.mif.vu.lt/cs/TK4/lithkeyb.html

// Describes Lithuanian keymap LST 1582:2000
// Extensions:  B01 L3 is "<" , B02 L3 is ">" and B03 L3 is endash to make this
// layout usable with pc101 and pc104 keyboards.
 
partial default alphanumeric_keys modifier_keys
xkb_symbols "lt_std" {

    include "pc/latin"

    name[Group1]= "Lithuanian";

    key <TLDE> {[	grave,		asciitilde,	acute		]};
    key <AE01> {[	exclam,		1,		at		]};
    key <AE02> {[	minus,		2,		underscore	]};
    key <AE03> {[	slash,		3,		numbersign	]};
    key <AE04> {[	semicolon,	4,		dollar		]};
    key <AE05> {[	colon,		5,		section		]};
    key <AE06> {[	comma,		6,		asciicircum	]};
    key <AE07> {[	period,		7,		ampersand	]};
    key <AE08> {[	equal,		8,		asterisk	]};
    key <AE09> {[	parenleft,	9,		bracketleft	]};
    key <AE10> {[	parenright,	0,		bracketright	]};
    key <AE11> {[	question,	plus,		apostrophe	]};
    key <AE12> {[	x,		X,		percent		]};
    key	<AD01> {[	aogonek,	Aogonek		]};
    key	<AD02> {[	zcaron,		Zcaron		]};
    key	<AD03> {[	e,		E,		EuroSign	]};
    key	<AD11> {[	iogonek,	Iogonek,	braceleft	]};
    key	<AD12> {[	w,		W,		braceright	]};
    key	<AC04> {[	scaron,		Scaron		]};
    key <AC10> {[	uogonek,	Uogonek		]};
    key <AC11> {[	eabovedot,	Eabovedot,	quotedbl	]};
    key	<AB01> {[	z,		Z,		less		]};
    key	<AB02> {[	umacron,	Umacron,	greater		]};
    key	<AB03> {[	c,		C,		endash		]};
    key	<AB08> {[	ccaron,		Ccaron,		doublelowquotemark  ]};
    key	<AB09> {[	f,		F,		leftdoublequotemark ]};
// this is actually right quote for Lithuanian
    key	<AB10> {[	eogonek,	Eogonek,	backslash	]};
    key <BKSL> {[	q,		Q,		bar		]};
    key <SPCE> {[	space,		space,		nobreakspace,	nobreakspace	]};

    key	<LSGT> {[	less,		greater,	endash		]};

    include "level3(ralt_switch_multikey)"
};
